Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/init_7.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.1: All elements. */
6
7 #include <stdint.h>
8
9 typedef int32_t vnx4si __attribute__((vector_size (32)));
10
11 /*
12 ** foo:
13 ** mov (z[0-9]+\.s), w7
14 ** insr \1, w6
15 ** insr \1, w5
16 ** insr \1, w4
17 ** insr \1, w3
18 ** insr \1, w2
19 ** insr \1, w1
20 ** insr \1, w0
21 ** ...
22 */
23 __attribute__((noipa))
24 vnx4si foo(int a, int b, int c, int d, int e, int f, int g, int h)
25 {
26 return (vnx4si) { a, b, c, d, e, f, g, h };
27 }