gcc/testsuite/gcc.dg/pr108947.c
raw| 1 | /* PR target/108947 */ |
| 2 | /* { dg-do run } */ |
| 3 | /* { dg-options "-O2 -fno-forward-propagate -Wno-psabi" } */ |
| 4 | |
| 5 | typedef unsigned short __attribute__((__vector_size__ (2 * sizeof (short)))) V; |
| 6 | |
| 7 | __attribute__((__noipa__)) V |
| 8 | foo (V v) |
| 9 | { |
| 10 | V w = 3 > (v & 3992); |
| 11 | return w; |
| 12 | } |
| 13 | |
| 14 | int |
| 15 | main () |
| 16 | { |
| 17 | V w = foo ((V) { 0, 9 }); |
| 18 | if (w[0] != 0xffff || w[1] != 0) |
| 19 | __builtin_abort (); |
| 20 | return 0; |
| 21 | } |