Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/abi-callee-saved-1-fixed-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -march=rv64gcv_zvl4096b -mabi=lp64d -mrvv-vector-bits=zvl" } */
3 /* { dg-final { check-function-bodies "**" "" } } */
4
5 #include "riscv_vector.h"
6
7 void bar (int8_t *data);
8
9 /*
10 ** foo1:
11 ** addi\tsp,sp,-16
12 ** sd\tra,8\(sp\)
13 ** addi\tsp,sp,-512
14 ** vs1r\.v\tv1,0\(sp\)
15 ** addi\tsp,sp,-512
16 ** vs1r\.v\tv2,0\(sp\)
17 ** addi\tsp,sp,-512
18 ** vs1r\.v\tv3,0\(sp\)
19 ** addi\tsp,sp,-512
20 ** vs1r\.v\tv4,0\(sp\)
21 ** addi\tsp,sp,-512
22 ** vs1r\.v\tv5,0\(sp\)
23 ** addi\tsp,sp,-512
24 ** vs1r\.v\tv6,0\(sp\)
25 ** addi\tsp,sp,-512
26 ** vs1r\.v\tv7,0\(sp\)
27 ** addi\tsp,sp,-512
28 ** vs1r\.v\tv24,0\(sp\)
29 ** addi\tsp,sp,-512
30 ** vs1r\.v\tv25,0\(sp\)
31 ** addi\tsp,sp,-512
32 ** vs1r\.v\tv26,0\(sp\)
33 ** addi\tsp,sp,-512
34 ** vs1r\.v\tv27,0\(sp\)
35 ** addi\tsp,sp,-512
36 ** vs1r\.v\tv28,0\(sp\)
37 ** addi\tsp,sp,-512
38 ** vs1r\.v\tv29,0\(sp\)
39 ** addi\tsp,sp,-512
40 ** vs1r\.v\tv30,0\(sp\)
41 ** addi\tsp,sp,-512
42 ** vs1r\.v\tv31,0\(sp\)
43 ** addi\tsp,sp,-1024
44 ** mv\ta0,sp
45 ** call\tbar
46 ** addi\tsp,sp,1024
47 ** vl1re64\.v\tv31,0\(sp\)
48 ** addi\tsp,sp,512
49 ** vl1re64\.v\tv30,0\(sp\)
50 ** addi\tsp,sp,512
51 ** vl1re64\.v\tv29,0\(sp\)
52 ** addi\tsp,sp,512
53 ** vl1re64\.v\tv28,0\(sp\)
54 ** addi\tsp,sp,512
55 ** vl1re64\.v\tv27,0\(sp\)
56 ** addi\tsp,sp,512
57 ** vl1re64\.v\tv26,0\(sp\)
58 ** addi\tsp,sp,512
59 ** vl1re64\.v\tv25,0\(sp\)
60 ** addi\tsp,sp,512
61 ** vl1re64\.v\tv24,0\(sp\)
62 ** addi\tsp,sp,512
63 ** vl1re64\.v\tv7,0\(sp\)
64 ** addi\tsp,sp,512
65 ** vl1re64\.v\tv6,0\(sp\)
66 ** addi\tsp,sp,512
67 ** vl1re64\.v\tv5,0\(sp\)
68 ** addi\tsp,sp,512
69 ** vl1re64\.v\tv4,0\(sp\)
70 ** addi\tsp,sp,512
71 ** vl1re64\.v\tv3,0\(sp\)
72 ** addi\tsp,sp,512
73 ** vl1re64\.v\tv2,0\(sp\)
74 ** addi\tsp,sp,512
75 ** vl1re64\.v\tv1,0\(sp\)
76 ** addi\tsp,sp,512
77 ** ld\tra,8\(sp\)
78 ** addi\tsp,sp,16
79 ** jr\tra
80 */
81 void
82 foo1 (vint8m1_t a)
83 {
84 int8_t data[1024];
85 bar (data);
86 }