Debian Codegraph @

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

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