Debian Codegraph @

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

raw
1 /* { dg-do assemble { target aarch64_asm_sve_ok } } */
2 /* { dg-options "-O -msve-vector-bits=256 --save-temps" } */
3 /* { dg-final { check-function-bodies "**" "" } } */
4
5 /* Case 5.5: Interleaved repeating elements and trailing same elements. */
6
7 #include <stdint.h>
8
9 typedef int32_t vnx4si __attribute__((vector_size (32)));
10
11 /*
12 ** foo:
13 ** fmov (s[0-9]+), w1
14 ** mov (z[0-9]+\.s), w2
15 ** mov (z[0-9]+\.s), w0
16 ** insr \3, \1
17 ** insr \3, \1
18 ** insr \3, \1
19 ** zip1 \3, \3, \2
20 ** ...
21 */
22 __attribute__((noipa))
23 vnx4si foo(int a, int b, int f)
24 {
25 return (vnx4si) { b, f, b, f, b, f, a, f };
26 }