gcc/testsuite/gcc.c-torture/compile/pr94488.c
raw| 1 | /* PR target/94488 */ |
| 2 | |
| 3 | typedef unsigned long V __attribute__((__vector_size__(16))); |
| 4 | typedef long W __attribute__((__vector_size__(16))); |
| 5 | |
| 6 | void |
| 7 | foo (V *x, unsigned long y) |
| 8 | { |
| 9 | *x = *x >> (unsigned int) y; |
| 10 | } |
| 11 | |
| 12 | void |
| 13 | bar (V *x, unsigned long y) |
| 14 | { |
| 15 | *x = *x << (unsigned int) y; |
| 16 | } |
| 17 | |
| 18 | void |
| 19 | baz (W *x, unsigned long y) |
| 20 | { |
| 21 | *x = *x >> (unsigned int) y; |
| 22 | } |