gcc/testsuite/gcc.target/aarch64/vbslq_u64_1.c
raw| 1 | /* Test if a BSL-like instruction can be generated from a C idiom. */ |
| 2 | /* { dg-do assemble } */ |
| 3 | /* { dg-options "--save-temps -O3" } */ |
| 4 | |
| 5 | #include <arm_neon.h> |
| 6 | |
| 7 | /* Folds to BIF. */ |
| 8 | |
| 9 | uint32x4_t |
| 10 | vbslq_dummy_u32 (uint32x4_t a, uint32x4_t b, uint32x4_t mask) |
| 11 | { |
| 12 | return (mask & a) | (~mask & b); |
| 13 | } |
| 14 | |
| 15 | /* { dg-final { scan-assembler-times "bif\\tv" 1 } } */ |
| 16 |