[PR81647][AARCH64] Fix handling of Unordered Comparisons in aarch64-simd.md
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / vbslq_f64_2.c
blob6980cb61a93c6b93d78775b57bb5a85e603c7c14
1 /* Test vbslq_f64 can be folded. */
2 /* { dg-do assemble } */
3 /* { dg-options "--save-temps -O3" } */
5 #include <arm_neon.h>
7 /* Should fold out one half of the BSL, leaving just a BIC. */
9 float32x4_t
10 half_fold_me (uint32x4_t mask)
12 float32x4_t a = {0.0, 0.0, 0.0, 0.0};
13 float32x4_t b = {2.0, 4.0, 8.0, 16.0};
14 return vbslq_f32 (mask, a, b);
18 /* { dg-final { scan-assembler-not "bsl\\tv" } } */
19 /* { dg-final { scan-assembler-not "bit\\tv" } } */
20 /* { dg-final { scan-assembler-not "bif\\tv" } } */
21 /* { dg-final { scan-assembler "bic\\tv" } } */