gcc/testsuite/gcc.dg/pr97487-2.c
raw| 1 | /* PR middle-end/97487 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2 --param max-rtl-if-conversion-unpredictable-cost=0 -Wno-psabi -w" } */ |
| 4 | |
| 5 | typedef long long int V __attribute__((vector_size (16))); |
| 6 | |
| 7 | long long int |
| 8 | foo (V x, V y) |
| 9 | { |
| 10 | long long int t1 = y[0]; |
| 11 | long long int t2 = x[0]; |
| 12 | long long int t3; |
| 13 | if (t2 < 0) |
| 14 | t3 = t1; |
| 15 | else |
| 16 | t3 = 0; |
| 17 | return t3; |
| 18 | } |