You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: llvm/test/MC/RISCV/rv64c-valid.s
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -72,3 +72,10 @@ c.srli a3, 63
72
72
# CHECK-ASM: encoding: [0x7d,0x96]
73
73
# CHECK-NO-EXT: error: instruction requires the following: 'C' (Compressed Instructions) or 'Zca' (part of the C extension, excluding compressed floating point loads/stores){{$}}
74
74
c.srai a2, 63
75
+
76
+
.set absdef, 1
77
+
78
+
# CHECK-ASM-AND-OBJ: c.addiw a0, 1
79
+
# CHECK-ASM: encoding: [0x05,0x25]
80
+
# CHECK-NO-EXT: error: instruction requires the following: 'C' (Compressed Instructions) or 'Zca' (part of the C extension, excluding compressed floating point loads/stores){{$}}
Copy file name to clipboardExpand all lines: llvm/test/MC/RISCV/rvc-valid.s
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -175,3 +175,20 @@ c.lui s0, 0xfffff
175
175
# CHECK-ASM: encoding: [0x00,0x00]
176
176
# CHECK-NO-EXT: error: instruction requires the following: 'C' (Compressed Instructions) or 'Zca' (part of the C extension, excluding compressed floating point loads/stores){{$}}
177
177
c.unimp
178
+
179
+
.set absdef, 1
180
+
181
+
c.addia0, absdef
182
+
# CHECK-ASM-AND-OBJ: c.addia0, 1
183
+
# CHECK-ASM: encoding: [0x05,0x05]
184
+
# CHECK-NO-EXT: error: instruction requires the following: 'C' (Compressed Instructions) or 'Zca' (part of the C extension, excluding compressed floating point loads/stores){{$}}
185
+
186
+
c.li a0, absdef
187
+
# CHECK-ASM-AND-OBJ: c.li a0, 1
188
+
# CHECK-ASM: encoding: [0x05,0x45]
189
+
# CHECK-NO-EXT: error: instruction requires the following: 'C' (Compressed Instructions) or 'Zca' (part of the C extension, excluding compressed floating point loads/stores){{$}}
190
+
191
+
c.andia0, absdef
192
+
# CHECK-ASM-AND-OBJ: c.andia0, 1
193
+
# CHECK-ASM: encoding: [0x05,0x89]
194
+
# CHECK-NO-EXT: error: instruction requires the following: 'C' (Compressed Instructions) or 'Zca' (part of the C extension, excluding compressed floating point loads/stores){{$}}
addia0, a1, reldef # CHECK: :[[@LINE]]:14: error: operand must be a symbol with %lo/%pcrel_lo/%tprel_lo specifier or an integer in the range [-2048, 2047]
10
+
addia0, a1, reldef-. # CHECK: :[[@LINE]]:14: error: operand must be a symbol with %lo/%pcrel_lo/%tprel_lo specifier or an integer in the range [-2048, 2047]
11
+
addia0, a1, undef # CHECK: :[[@LINE]]:14: error: operand must be a symbol with %lo/%pcrel_lo/%tprel_lo specifier or an integer in the range [-2048, 2047]
12
+
addia0, a1, latedef # CHECK: :[[@LINE]]:14: error: operand must be a symbol with %lo/%pcrel_lo/%tprel_lo specifier or an integer in the range [-2048, 2047]
13
+
14
+
15
+
luia0, reldef # CHECK: :[[@LINE]]:9: error: operand must be a symbol with %hi/%tprel_hi specifier or an integer in the range [0, 1048575]
16
+
luia0, reldef-. # CHECK: :[[@LINE]]:9: error: operand must be a symbol with %hi/%tprel_hi specifier or an integer in the range [0, 1048575]
17
+
luia0, undef # CHECK: :[[@LINE]]:9: error: operand must be a symbol with %hi/%tprel_hi specifier or an integer in the range [0, 1048575]
18
+
luia0, latedef # CHECK: :[[@LINE]]:9: error: operand must be a symbol with %hi/%tprel_hi specifier or an integer in the range [0, 1048575]
19
+
20
+
auipca0, reldef # CHECK: :[[@LINE]]:11: error: operand must be a symbol with a %pcrel_hi/%got_pcrel_hi/%tls_ie_pcrel_hi/%tls_gd_pcrel_hi specifier or an integer in the range [0, 1048575]
21
+
auipca0, reldef-. # CHECK: :[[@LINE]]:11: error: operand must be a symbol with a %pcrel_hi/%got_pcrel_hi/%tls_ie_pcrel_hi/%tls_gd_pcrel_hi specifier or an integer in the range [0, 1048575]
22
+
auipca0, undef # CHECK: :[[@LINE]]:11: error: operand must be a symbol with a %pcrel_hi/%got_pcrel_hi/%tls_ie_pcrel_hi/%tls_gd_pcrel_hi specifier or an integer in the range [0, 1048575]
23
+
auipca0, latedef # CHECK: :[[@LINE]]:11: error: operand must be a symbol with a %pcrel_hi/%got_pcrel_hi/%tls_ie_pcrel_hi/%tls_gd_pcrel_hi specifier or an integer in the range [0, 1048575]
0 commit comments