Skip to content

Commit e56ba37

Browse files
authored
[RISCV] Remove the mucounteren alternate name for CSR 0x320. (#132498)
This is the old name for 0x320 from privilege spec 1.9. It has different semantics than mcountinhibit that is at that address now. It doesn't look like binutils supports this name anymore so I don't think llvm should.
1 parent 2b82555 commit e56ba37

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

llvm/lib/Target/RISCV/RISCVSystemOperands.td

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,6 @@ foreach i = 3...31 in
301301
// Machine Counter Setup
302302
//===----------------------------------------------------------------------===//
303303
def : SysReg<"mcountinhibit", 0x320>;
304-
let isAltName = 1 in
305-
def : SysReg<"mucounteren", 0x320>;
306304

307305
// mhpmevent3-mhpmevent31 at 0x323-0x33F.
308306
foreach i = 3...31 in

llvm/test/MC/RISCV/machine-csr-names.s

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2036,20 +2036,6 @@ csrrs t1, mcountinhibit, zero
20362036
# uimm12
20372037
csrrs t2, 0x320, zero
20382038

2039-
# mucounteren
2040-
# name
2041-
# CHECK-INST: csrrs t1, mcountinhibit, zero
2042-
# CHECK-ENC: encoding: [0x73,0x23,0x00,0x32]
2043-
# CHECK-INST-ALIAS: csrr t1, mcountinhibit
2044-
# uimm12
2045-
# CHECK-INST: csrrs t2, mcountinhibit, zero
2046-
# CHECK-ENC: encoding: [0xf3,0x23,0x00,0x32]
2047-
# CHECK-INST-ALIAS: csrr t2, mcountinhibit
2048-
# name
2049-
csrrs t1, mucounteren, zero
2050-
# uimm12
2051-
csrrs t2, 0x320, zero
2052-
20532039
# mhpmevent3
20542040
# name
20552041
# CHECK-INST: csrrs t1, mhpmevent3, zero

0 commit comments

Comments
 (0)