gcc/testsuite/gcc.dg/torture/pr103181.c
raw| 1 | /* { dg-do run } */ |
| 2 | |
| 3 | typedef unsigned char __attribute__((__vector_size__ (2))) U; |
| 4 | typedef unsigned short S; |
| 5 | typedef unsigned int __attribute__((__vector_size__ (64))) V; |
| 6 | |
| 7 | V v; |
| 8 | U a, b, c; |
| 9 | |
| 10 | U |
| 11 | foo (S s) |
| 12 | { |
| 13 | v += __builtin_bswap16 (s) || (S) (a / ((U){3, 0})); |
| 14 | return b + c; |
| 15 | } |
| 16 | |
| 17 | int |
| 18 | main (void) |
| 19 | { |
| 20 | U x = foo (4); |
| 21 | if (x[0] || x[1]) |
| 22 | __builtin_abort (); |
| 23 | return 0; |
| 24 | } |