Skip to content

Commit c95bd12

Browse files
committed
[RISCV] XQCIA 0.4 spec renamed qc.slasat->qc.shlsat qc.sllsat->qc.shlusat
Signed-off-by: Luke Quinn <[email protected]>
1 parent 65683b0 commit c95bd12

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoXqci.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,8 @@ let Predicates = [HasVendorXqcisls, IsRV32], DecoderNamespace = "Xqcisls" in {
275275

276276
let Predicates = [HasVendorXqcia, IsRV32], DecoderNamespace = "Xqcia" in {
277277
let hasSideEffects = 0, mayLoad = 0, mayStore = 0 in {
278-
def QC_SLASAT : QCIRVInstRR<0b01010, GPRNoX0, "qc.slasat">;
279-
def QC_SLLSAT : QCIRVInstRR<0b01100, GPRNoX0, "qc.sllsat">;
278+
def QC_SHLSAT : QCIRVInstRR<0b01010, GPRNoX0, "qc.shlsat">;
279+
def QC_SHLUSAT : QCIRVInstRR<0b01100, GPRNoX0, "qc.shlusat">;
280280
def QC_ADDSAT : QCIRVInstRR<0b01110, GPRNoX0, "qc.addsat">;
281281
def QC_ADDUSAT : QCIRVInstRR<0b01111, GPRNoX0, "qc.addusat">;
282282
def QC_SUBSAT : QCIRVInstRR<0b10000, GPRNoX0, "qc.subsat">;

llvm/test/MC/RISCV/xqcia-invalid.s

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,41 @@
55
# RUN: | FileCheck -check-prefixes=CHECK,CHECK-MINUS %s
66

77
# CHECK: :[[@LINE+1]]:20: error: invalid operand for instruction
8-
qc.slasat x10, x3, 17
8+
qc.shlsat x10, x3, 17
99

1010
# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction
11-
qc.slasat x10, x3
11+
qc.shlsat x10, x3
1212

1313
# CHECK: :[[@LINE+1]]:11: error: invalid operand for instruction
14-
qc.slasat x0, x3, x17
14+
qc.shlsat x0, x3, x17
1515

1616
# CHECK: :[[@LINE+1]]:16: error: invalid operand for instruction
17-
qc.slasat x10, x0, x17
17+
qc.shlsat x10, x0, x17
1818

1919
# CHECK: :[[@LINE+1]]:20: error: invalid operand for instruction
20-
qc.slasat x10, x3, x0
20+
qc.shlsat x10, x3, x0
2121

2222
# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcia' (Qualcomm uC Arithmetic Extension)
23-
qc.slasat x10, x3, x17
23+
qc.shlsat x10, x3, x17
2424

2525

26-
# CHECK: :[[@LINE+1]]:21: error: invalid operand for instruction
27-
qc.sllsat x23, x25, 27
26+
# CHECK: :[[@LINE+1]]:22: error: invalid operand for instruction
27+
qc.shlusat x23, x25, 27
2828

2929
# CHECK: :[[@LINE+1]]:1: error: too few operands for instruction
30-
qc.sllsat x23, x25
30+
qc.shlusat x23, x25
3131

32-
# CHECK: :[[@LINE+1]]:11: error: invalid operand for instruction
33-
qc.sllsat x0, x25, x27
32+
# CHECK: :[[@LINE+1]]:12: error: invalid operand for instruction
33+
qc.shlusat x0, x25, x27
3434

35-
# CHECK: :[[@LINE+1]]:16: error: invalid operand for instruction
36-
qc.sllsat x23, x0, x27
35+
# CHECK: :[[@LINE+1]]:17: error: invalid operand for instruction
36+
qc.shlusat x23, x0, x27
3737

38-
# CHECK: :[[@LINE+1]]:21: error: invalid operand for instruction
39-
qc.sllsat x23, x25, x0
38+
# CHECK: :[[@LINE+1]]:22: error: invalid operand for instruction
39+
qc.shlusat x23, x25, x0
4040

4141
# CHECK-MINUS: :[[@LINE+1]]:1: error: instruction requires the following: 'Xqcia' (Qualcomm uC Arithmetic Extension)
42-
qc.sllsat x23, x25, x27
42+
qc.shlusat x23, x25, x27
4343

4444

4545
# CHECK: :[[@LINE+1]]:21: error: invalid operand for instruction

llvm/test/MC/RISCV/xqcia-valid.s

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
# RUN: | llvm-objdump --mattr=+experimental-xqcia --no-print-imm-hex -d - \
1111
# RUN: | FileCheck -check-prefix=CHECK-INST %s
1212

13-
# CHECK-INST: qc.slasat a0, gp, a7
13+
# CHECK-INST: qc.shlsat a0, gp, a7
1414
# CHECK-ENC: encoding: [0x0b,0xb5,0x11,0x15]
15-
qc.slasat x10, x3, x17
15+
qc.shlsat x10, x3, x17
1616

17-
# CHECK-INST: qc.sllsat s7, s9, s11
17+
# CHECK-INST: qc.shlusat s7, s9, s11
1818
# CHECK-ENC: encoding: [0x8b,0xbb,0xbc,0x19]
19-
qc.sllsat x23, x25, x27
19+
qc.shlusat x23, x25, x27
2020

2121
# CHECK-INST: qc.addsat a7, a4, t2
2222
# CHECK-ENC: encoding: [0x8b,0x38,0x77,0x1c]

0 commit comments

Comments
 (0)