gcc/testsuite/gcc.target/i386/pr114339.c
raw| 1 | /* PR target/114339 */ |
| 2 | /* { dg-do run } */ |
| 3 | /* { dg-options "-O2 -Wno-psabi" } */ |
| 4 | /* { dg-additional-options "-mavx" { target avx_runtime } } */ |
| 5 | |
| 6 | typedef long long V __attribute__((vector_size (16))); |
| 7 | |
| 8 | __attribute__((noipa)) V |
| 9 | foo (V a) |
| 10 | { |
| 11 | return a <= (V) {0, __LONG_LONG_MAX__ }; |
| 12 | } |
| 13 | |
| 14 | int |
| 15 | main () |
| 16 | { |
| 17 | V t = foo ((V) { 0, 0 }); |
| 18 | if (t[0] != -1LL || t[1] != -1LL) |
| 19 | __builtin_abort (); |
| 20 | } |