gcc/testsuite/gcc.c-torture/compile/pr44707.c
raw| 1 | /* { dg-do compile { target powerpc-ibm-aix* } } */ |
| 2 | |
| 3 | extern struct { int a, b, c, d; } v; |
| 4 | extern int w; |
| 5 | |
| 6 | void |
| 7 | foo (void) |
| 8 | { |
| 9 | int e1 = v.a; |
| 10 | int e2 = w; |
| 11 | int e3 = v.b; |
| 12 | int e4 = v.c; |
| 13 | int e5 = v.d; |
| 14 | __asm__ volatile ("" : : "nro" (e1), "nro" (e2), "nro" (e3), "nro" (e4), "nro" (e5)); |
| 15 | } |
| 16 |