comparison gcc/testsuite/gcc.target/aarch64/sve/acle/general/unoptimized_1.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
comparison
equal deleted inserted replaced
145:1830386684a0 152:2b5abeee2509
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 }