Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/acle/general/unoptimized_1.c

raw
1 /* { dg-do run { target aarch64_sve_hw } } */
2
3 #include <arm_sve.h>
4
5 svfloat32_t
6 foo (float *ptr)
7 {
8 svbool_t pg = svptrue_pat_b32 (SV_VL1);
9 svfloat32_t res = svld1 (pg, ptr);
10 return res;
11 }
12
13 int
14 main (void)
15 {
16 svbool_t pg = svptrue_pat_b32 (SV_VL1);
17 float x[1] = { 1 };
18 if (svptest_any (pg, svcmpne (pg, foo (x), 1.0)))
19 __builtin_abort ();
20 return 0;
21 }