Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/simd_imm_mov.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 /* { dg-final { check-function-bodies "**" "" "" } } */
4
5 #include <arm_neon.h>
6
7 typedef short v8hi __attribute__((vector_size(16)));
8 typedef int v4si __attribute__((vector_size(16)));
9 typedef long v2di __attribute__((vector_size(16)));
10
11 /*
12 ** t1:
13 ** mov z0.s, #?4092
14 ** ret
15 */
16 v4si t1 ()
17 {
18 return (v4si) { 0xffc, 0xffc, 0xffc, 0xffc };
19 }
20
21 /*
22 ** t2:
23 ** mov z0.h, #?510
24 ** ret
25 */
26 v8hi t2 ()
27 {
28 return (v8hi) { 510, 510, 510, 510, 510, 510, 510, 510 };
29 }
30
31 /*
32 ** t3:
33 ** mov z0.d, #?1
34 ** ret
35 */
36 v2di t3 ()
37 {
38 return (v2di) { 1, 1 };
39 }