gcc/testsuite/gcc.target/aarch64/pr109391.c
raw| 1 | /* { dg-options "-Ofast" } */ |
| 2 | |
| 3 | #include <arm_neon.h> |
| 4 | |
| 5 | int16x8x3_t bsl(const uint16x8x3_t *check, const int16x8x3_t *in1, |
| 6 | const int16x8x3_t *in2) { |
| 7 | int16x8x3_t out; |
| 8 | for (uint32_t j = 0; j < 3; j++) { |
| 9 | out.val[j] = vbslq_s16(check->val[j], in1->val[j], in2->val[j]); |
| 10 | } |
| 11 | return out; |
| 12 | } |
| 13 | |
| 14 | /* { dg-final { scan-assembler-not {\tmov\t} } } */ |