gcc/testsuite/gcc.dg/pr96558.c
raw| 1 | /* PR target/96558 */ |
| 2 | /* { dg-do compile { target int128 } } */ |
| 3 | /* { dg-options "-O2 -fno-expensive-optimizations -fno-gcse" } */ |
| 4 | |
| 5 | int ky; |
| 6 | long int h1; |
| 7 | __int128 f1; |
| 8 | |
| 9 | int |
| 10 | sd (void); |
| 11 | |
| 12 | int __attribute__ ((simd)) |
| 13 | i8 (void) |
| 14 | { |
| 15 | __int128 vh; |
| 16 | |
| 17 | if (sd () == 0) |
| 18 | h1 = 0; |
| 19 | |
| 20 | do |
| 21 | { |
| 22 | long int lf = (long int) f1 ? h1 : 0; |
| 23 | |
| 24 | ky += lf; |
| 25 | vh = lf | f1; |
| 26 | f1 = 1; |
| 27 | } |
| 28 | while (vh < (f1 ^ 2)); |
| 29 | |
| 30 | return 0; |
| 31 | } |
| 32 |