Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/compile/pr51767.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* PR rtl-optimization/51767 */ |
2 | |
3 extern void fn1 (void), fn2 (void); | |
4 | |
5 static inline __attribute__((always_inline)) int | |
6 foo (int *x, long y) | |
7 { | |
8 asm goto ("" : : "r" (x), "r" (y) : "memory" : lab); | |
9 return 0; | |
10 lab: | |
11 return 1; | |
12 } | |
13 | |
14 void | |
15 bar (int *x) | |
16 { | |
17 if (foo (x, 23)) | |
18 fn1 (); | |
19 else | |
20 fn2 (); | |
21 | |
22 foo (x, 2); | |
23 } |