gcc/testsuite/gcc.target/s390/20181024-1.c
raw| 1 | /* Make sure s390_check_qrst_address () correctly handles UNSPEC rtxs. */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-march=z196 -O2 -fPIC" } */ |
| 4 | |
| 5 | int a, b, g, h; |
| 6 | struct |
| 7 | { |
| 8 | int i; |
| 9 | struct |
| 10 | { |
| 11 | int d; |
| 12 | } k[]; |
| 13 | } f; |
| 14 | |
| 15 | void m(int); |
| 16 | |
| 17 | void l() |
| 18 | { |
| 19 | int j; |
| 20 | for (; h;) |
| 21 | { |
| 22 | m(( |
| 23 | { |
| 24 | __asm__("" : "=r"(g)); |
| 25 | b; |
| 26 | } |
| 27 | )); |
| 28 | f.k[j].d = a; |
| 29 | j++; |
| 30 | } |
| 31 | f.i = j; |
| 32 | } |