Debian Codegraph @

gcc/testsuite/gcc.target/arm/simd/pr98435.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ffast-math" } */
3 /* { dg-require-effective-target arm_softfp_ok } */
4 /* { dg-require-effective-target arm_v8_2a_bf16_neon_ok } */
5 /* { dg-add-options arm_v8_2a_bf16_neon } */
6 /* { dg-additional-options "-mfloat-abi=softfp -march=armv8.2-a+bf16+fp16" } */
7
8 #include <arm_neon.h>
9
10 bfloat16x4_t f (bfloat16_t a)
11 {
12 return (bfloat16x4_t) {a, a, a, a};
13 }
14
15 /* { dg-final { scan-assembler {\tvdup.16\td[0-9]+, r0} } } */
16 /* { dg-final { scan-assembler {\tvmov\tr0, r1, d[0-9]+} } } */