Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr87746.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 /* { dg-do compile } */ | |
2 /* { dg-options "-Ofast" } */ | |
3 /* { dg-additional-options "-mavx2" { target x86_64-*-* i?86-*-* } } */ | |
4 | |
5 typedef struct rtx_def *rtx; | |
6 struct replacement { | |
7 rtx *where; | |
8 rtx *subreg_loc; | |
9 int mode; | |
10 }; | |
11 static struct replacement replacements[150]; | |
12 void move_replacements (rtx *x, rtx *y, int n_replacements) | |
13 { | |
14 int i; | |
15 for (i = 0; i < n_replacements; i++) | |
16 if (replacements[i].subreg_loc == x) | |
17 replacements[i].subreg_loc = y; | |
18 else if (replacements[i].where == x) | |
19 { | |
20 replacements[i].where = y; | |
21 replacements[i].subreg_loc = 0; | |
22 } | |
23 } |