gcc/testsuite/gcc.dg/simd-8.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-w -Wno-psabi" } */ |
| 3 | |
| 4 | #if __SIZEOF_LONG_DOUBLE__ == 16 || __SIZEOF_LONG_DOUBLE__ == 8 |
| 5 | typedef long double a __attribute__((vector_size (32))); |
| 6 | |
| 7 | a __attribute__((noinline)) |
| 8 | sum (a first, a second) |
| 9 | { |
| 10 | return first + second; |
| 11 | } |
| 12 | |
| 13 | a |
| 14 | foo (a x, a y, a z) |
| 15 | { |
| 16 | return sum (x, y) + z; |
| 17 | } |
| 18 | #else |
| 19 | int main() {} |
| 20 | #endif |