gcc/testsuite/gcc.target/aarch64/sve/acle/general/pr121118_1.c
raw| 1 | /* { dg-options "-O2 -msve-vector-bits=512" } */ |
| 2 | |
| 3 | typedef __SVBool_t fixed_bool __attribute__((arm_sve_vector_bits(512))); |
| 4 | |
| 5 | #define TEST_CONST(NAME, CONST) \ |
| 6 | fixed_bool \ |
| 7 | NAME () \ |
| 8 | { \ |
| 9 | union { unsigned long long i; fixed_bool pg; } u = { CONST }; \ |
| 10 | return u.pg; \ |
| 11 | } |
| 12 | |
| 13 | TEST_CONST (test1, 0x02aaaaaaaa) |
| 14 | TEST_CONST (test2, 0x0155555557) |
| 15 | TEST_CONST (test3, 0x0013333333333333ULL) |
| 16 | TEST_CONST (test4, 0x0011111111111113ULL) |