gcc/testsuite/gcc.c-torture/compile/vector-dup-1.c
raw| 1 | /* { dg-additional-options "-fno-strict-aliasing" } */ |
| 2 | |
| 3 | |
| 4 | /* PR target/103170 */ |
| 5 | /* AARCH64 used to ICE on this for a typo in the string template. */ |
| 6 | #define vector __attribute__((vector_size(4*sizeof(float)))) |
| 7 | |
| 8 | typedef vector float v4sf; |
| 9 | |
| 10 | v4sf f(int t) |
| 11 | { |
| 12 | float tt = *(float*)&t; |
| 13 | asm("":"+r"(tt)); |
| 14 | return (v4sf){tt,tt,tt,tt}; |
| 15 | } |