gcc/testsuite/gcc.target/i386/pr78227-2.c
raw| 1 | /* PR target/78227 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-mavx512bw -O0 -Wno-psabi" } */ |
| 4 | |
| 5 | typedef signed char V __attribute__((vector_size (64))); |
| 6 | typedef short int W __attribute__((vector_size (64))); |
| 7 | |
| 8 | V |
| 9 | foo1 (V v) |
| 10 | { |
| 11 | return v > 0; |
| 12 | } |
| 13 | |
| 14 | V |
| 15 | bar1 (V v) |
| 16 | { |
| 17 | return v != 0; |
| 18 | } |
| 19 | |
| 20 | W |
| 21 | foo2 (W w) |
| 22 | { |
| 23 | return w > 0; |
| 24 | } |
| 25 | |
| 26 | W |
| 27 | bar2 (W w) |
| 28 | { |
| 29 | return w != 0; |
| 30 | } |