gcc/testsuite/gcc.target/aarch64/simd/addp-same-low_1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-additional-options "-O" } */ |
| 3 | /* { dg-require-effective-target aarch64_little_endian } */ |
| 4 | /* { dg-final { check-function-bodies "**" "" "" } } */ |
| 5 | |
| 6 | #include <arm_neon.h> |
| 7 | |
| 8 | |
| 9 | /* |
| 10 | ** foo: |
| 11 | ** addp v0\.4s, v0\.4s, v0\.4s |
| 12 | ** ret |
| 13 | */ |
| 14 | |
| 15 | int32x2_t |
| 16 | foo (int32x4_t a) |
| 17 | { |
| 18 | return vpadd_s32 (vget_low_s32(a), vget_high_s32(a)); |
| 19 | } |
| 20 |