| 1 |
/* { dg-require-effective-target arm_v8_1m_mve_fp_ok } */ |
| 2 |
/* { dg-add-options arm_v8_1m_mve_fp } */ |
| 3 |
/* { dg-additional-options "-O2" } */ |
| 4 |
|
| 5 |
/* PR target/122223. */ |
| 6 |
|
| 7 |
#include <arm_mve.h> |
| 8 |
|
| 9 |
#ifdef __cplusplus |
| 10 |
extern "C" { |
| 11 |
#endif |
| 12 |
|
| 13 |
float32x4_t foo() { |
| 14 |
float32x4_t a = vdupq_n_f32(1.0f); /* 0x3f800000 */ |
| 15 |
float32x4_t b = vbicq_f32(a, a); /* 0x3f800000 & ~0x3f800000 => 0x00000000 */ |
| 16 |
float32x4_t c = vbicq_f32(a, b); /* 0x3f800000 & ~0x00000000 => 0x3f800000 */ |
| 17 |
return c; |
| 18 |
} |
| 19 |
|
| 20 |
#ifdef __cplusplus |
| 21 |
} |
| 22 |
#endif |
| 23 |
|
| 24 |
/* { dg-final { scan-assembler-not "vmov.f32\tq\[0-9\]+, #0.0" } } */ |
| 25 |
/* { dg-final { scan-assembler "vmov.f32\tq\[0-9\]+, #1.0" } } */ |