• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llvm-mc %s -triple=riscv32 | FileCheck %s
2# RUN: llvm-mc %s -triple=riscv64 | FileCheck %s
3
4.cfi_startproc
5# CHECK: .cfi_offset zero, 0
6.cfi_offset x0, 0
7# CHECK: .cfi_offset ra, 8
8.cfi_offset x1, 8
9# CHECK: .cfi_offset sp, 16
10.cfi_offset x2, 16
11# CHECK: .cfi_offset gp, 24
12.cfi_offset x3, 24
13# CHECK: .cfi_offset tp, 32
14.cfi_offset x4, 32
15# CHECK: .cfi_offset t0, 40
16.cfi_offset x5, 40
17# CHECK: .cfi_offset t1, 48
18.cfi_offset x6, 48
19# CHECK: .cfi_offset t2, 56
20.cfi_offset x7, 56
21# CHECK: .cfi_offset s0, 64
22.cfi_offset x8, 64
23# CHECK: .cfi_offset s1, 72
24.cfi_offset x9, 72
25# CHECK: .cfi_offset a0, 80
26.cfi_offset x10, 80
27# CHECK: .cfi_offset a1, 88
28.cfi_offset x11, 88
29# CHECK: .cfi_offset a2, 96
30.cfi_offset x12, 96
31# CHECK: .cfi_offset a3, 104
32.cfi_offset x13, 104
33# CHECK: .cfi_offset a4, 112
34.cfi_offset x14, 112
35# CHECK: .cfi_offset a5, 120
36.cfi_offset x15, 120
37# CHECK: .cfi_offset a6, 128
38.cfi_offset x16, 128
39# CHECK: .cfi_offset a7, 136
40.cfi_offset x17, 136
41# CHECK: .cfi_offset s2, 144
42.cfi_offset x18, 144
43# CHECK: .cfi_offset s3, 152
44.cfi_offset x19, 152
45# CHECK: .cfi_offset s4, 160
46.cfi_offset x20, 160
47# CHECK: .cfi_offset s5, 168
48.cfi_offset x21, 168
49# CHECK: .cfi_offset s6, 176
50.cfi_offset x22, 176
51# CHECK: .cfi_offset s7, 184
52.cfi_offset x23, 184
53# CHECK: .cfi_offset s8, 192
54.cfi_offset x24, 192
55# CHECK: .cfi_offset s9, 200
56.cfi_offset x25, 200
57# CHECK: .cfi_offset s10, 208
58.cfi_offset x26, 208
59# CHECK: .cfi_offset s11, 216
60.cfi_offset x27, 216
61# CHECK: .cfi_offset t3, 224
62.cfi_offset x28, 224
63# CHECK: .cfi_offset t4, 232
64.cfi_offset x29, 232
65# CHECK: .cfi_offset t5, 240
66.cfi_offset x30, 240
67# CHECK: .cfi_offset t6, 248
68.cfi_offset x31, 248
69.cfi_endproc
70
71.cfi_startproc
72# CHECK: .cfi_offset zero, 0
73.cfi_offset zero, 0
74# CHECK: .cfi_offset ra, 8
75.cfi_offset ra, 8
76# CHECK: .cfi_offset sp, 16
77.cfi_offset sp, 16
78# CHECK: .cfi_offset gp, 24
79.cfi_offset gp, 24
80# CHECK: .cfi_offset tp, 32
81.cfi_offset tp, 32
82# CHECK: .cfi_offset t0, 40
83.cfi_offset t0, 40
84# CHECK: .cfi_offset t1, 48
85.cfi_offset t1, 48
86# CHECK: .cfi_offset t2, 56
87.cfi_offset t2, 56
88# CHECK: .cfi_offset s0, 64
89.cfi_offset s0, 64
90# CHECK: .cfi_offset s1, 72
91.cfi_offset s1, 72
92# CHECK: .cfi_offset a0, 80
93.cfi_offset a0, 80
94# CHECK: .cfi_offset a1, 88
95.cfi_offset a1, 88
96# CHECK: .cfi_offset a2, 96
97.cfi_offset a2, 96
98# CHECK: .cfi_offset a3, 104
99.cfi_offset a3, 104
100# CHECK: .cfi_offset a4, 112
101.cfi_offset a4, 112
102# CHECK: .cfi_offset a5, 120
103.cfi_offset a5, 120
104# CHECK: .cfi_offset a6, 128
105.cfi_offset a6, 128
106# CHECK: .cfi_offset a7, 136
107.cfi_offset a7, 136
108# CHECK: .cfi_offset s2, 144
109.cfi_offset s2, 144
110# CHECK: .cfi_offset s3, 152
111.cfi_offset s3, 152
112# CHECK: .cfi_offset s4, 160
113.cfi_offset s4, 160
114# CHECK: .cfi_offset s5, 168
115.cfi_offset s5, 168
116# CHECK: .cfi_offset s6, 176
117.cfi_offset s6, 176
118# CHECK: .cfi_offset s7, 184
119.cfi_offset s7, 184
120# CHECK: .cfi_offset s8, 192
121.cfi_offset s8, 192
122# CHECK: .cfi_offset s9, 200
123.cfi_offset s9, 200
124# CHECK: .cfi_offset s10, 208
125.cfi_offset s10, 208
126# CHECK: .cfi_offset s11, 216
127.cfi_offset s11, 216
128# CHECK: .cfi_offset t3, 224
129.cfi_offset t3, 224
130# CHECK: .cfi_offset t4, 232
131.cfi_offset t4, 232
132# CHECK: .cfi_offset t5, 240
133.cfi_offset t5, 240
134# CHECK: .cfi_offset t6, 248
135.cfi_offset t6, 248
136
137.cfi_endproc
138