Skip to content

Commit 9973d2e

Browse files
committed
fixup! [RISCV] Xqciint SystemRegs, Final Assembly Insts
1 parent bc7e221 commit 9973d2e

File tree

4 files changed

+2
-24
lines changed

4 files changed

+2
-24
lines changed

llvm/lib/Target/RISCV/RISCVFrameLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ static const MCPhysReg FixedCSRFIMap[] = {
126126
static constexpr uint64_t QCIInterruptPushAmount = 96;
127127

128128
static const std::pair<MCPhysReg, int8_t> FixedCSRFIQCIInterruptMap[] = {
129-
/* -1 is a gap for mepc/qc.mnepc */
129+
/* -1 is a gap for mepc/mnepc */
130130
{/*fp*/ FPReg, -2},
131-
/* -3 is a gap for mcause */
131+
/* -3 is a gap for qc.mcause */
132132
{/*ra*/ RAReg, -4},
133133
/* -5 is reserved */
134134
{/*t0*/ RISCV::X5, -6},

llvm/lib/Target/RISCV/RISCVSystemOperands.td

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,6 @@ def : SysReg<"mctrctl", 0x34e>;
479479
// Xqciint
480480
let FeaturesRequired = [{ {RISCV::FeatureVendorXqciint} }], isRV32Only = 1 in {
481481
def : SysReg<"qc.mmcr", 0x7C0>;
482-
def : SysReg<"qc.mnepc", 0x7C1>;
483-
def : SysReg<"qc.mncause", 0x7C2>;
484482
def : SysReg<"qc.mntvec", 0x7C3>;
485483
def : SysReg<"qc.mstktopaddr", 0x7C4>;
486484
def : SysReg<"qc.mstkbottomaddr", 0x7C5>;

llvm/test/MC/RISCV/xqciint-csrs-invalid.s

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
55
csrrs t2, qc.mmcr, zero
66
// CHECK-FEATURE: :[[@LINE-1]]:11: error: system register 'qc.mmcr' requires 'experimental-xqciint' to be enabled
77

8-
csrrs t2, qc.mnepc, zero
9-
// CHECK-FEATURE: :[[@LINE-1]]:11: error: system register 'qc.mnepc' requires 'experimental-xqciint' to be enabled
10-
11-
csrrs t2, qc.mncause, zero
12-
// CHECK-FEATURE: :[[@LINE-1]]:11: error: system register 'qc.mncause' requires 'experimental-xqciint' to be enabled
13-
148
csrrs t2, qc.mntvec, zero
159
// CHECK-FEATURE: :[[@LINE-1]]:11: error: system register 'qc.mntvec' requires 'experimental-xqciint' to be enabled
1610

llvm/test/MC/RISCV/xqciint-csrs-valid.s

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,6 @@ csrrs t2, 0x7C0, zero
1212
// CHECK-ENC: encoding: [0xf3,0x23,0x00,0x7c]
1313
// CHECK-INST: csrrs t2, qc.mmcr, zero
1414

15-
csrrs t2, qc.mnepc, zero
16-
// CHECK-ENC: encoding: [0xf3,0x23,0x10,0x7c]
17-
// CHECK-INST: csrrs t2, qc.mnepc, zero
18-
csrrs t2, 0x7C1, zero
19-
// CHECK-ENC: encoding: [0xf3,0x23,0x10,0x7c]
20-
// CHECK-INST: csrrs t2, qc.mnepc, zero
21-
22-
csrrs t2, qc.mncause, zero
23-
// CHECK-ENC: encoding: [0xf3,0x23,0x20,0x7c]
24-
// CHECK-INST: csrrs t2, qc.mncause, zero
25-
csrrs t2, 0x7C2, zero
26-
// CHECK-ENC: encoding: [0xf3,0x23,0x20,0x7c]
27-
// CHECK-INST: csrrs t2, qc.mncause, zero
28-
2915
csrrs t2, qc.mntvec, zero
3016
// CHECK-ENC: encoding: [0xf3,0x23,0x30,0x7c]
3117
// CHECK-INST: csrrs t2, qc.mntvec, zero

0 commit comments

Comments
 (0)