Debian Codegraph @

gcc/testsuite/gcc.target/arm/pr68620.c

raw
1 /* { dg-do compile } */
2 /* { dg-skip-if "-mpure-code supports M-profile without Neon only" { *-*-* } { "-mpure-code" } } */
3 /* { dg-require-effective-target arm_arch_v7a_ok } */
4 /* { dg-require-effective-target arm_libc_fp_abi_ok } */
5 /* { dg-options "-mfp16-format=ieee -mfpu=auto" } */
6 /* { dg-add-options arm_arch_v7a } */
7 /* { dg-add-options arm_libc_fp_abi } */
8
9 #include "arm_neon.h"
10
11 float16x4_t __attribute__((target("fpu=neon-fp16")))
12 foo (float32x4_t arg)
13 {
14 return vcvt_f16_f32 (arg);
15 }