Debian Codegraph @

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

raw
1 /* { dg-options "-O -msve-vector-bits=256" } */
2 /* { dg-final { check-function-bodies "**" "" } } */
3
4 #include <arm_neon_sve_bridge.h>
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9
10 /*
11 ** f1: { target aarch64_little_endian }
12 ** ldr q0, \[x0\]
13 ** ret
14 */
15 svint32_t
16 f1 (int *a)
17 {
18 return svset_neonq (svundef_s32 (), vld1q_s32 (a));
19 }
20
21 /*
22 ** f2: { target aarch64_little_endian }
23 ** ldr q0, \[x0\]
24 ** ret
25 */
26 svint32_t
27 f2 (int *a)
28 {
29 svint32_t undef;
30 return svset_neonq (undef, vld1q_s32 (a));
31 }
32
33 /*
34 ** f3: { target aarch64_little_endian }
35 ** mov [vz]0.[^\n]+, [vz]1.[^\n]+
36 ** ret
37 */
38 svint32_t
39 f3 (int32x4_t v0, int32x4_t v1)
40 {
41 return svset_neonq (svundef_s32 (), v1);
42 }
43
44 #ifdef __cplusplus
45 }
46 #endif