Skip to content

Commit 342e39b

Browse files
committed
[Xtensa] Minor fixes.
1 parent 9a43648 commit 342e39b

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

llvm/lib/Target/Xtensa/Disassembler/XtensaDisassembler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ static DecodeStatus DecodeSRRegisterClass(MCInst &Inst, uint64_t RegNo,
171171

172172
// Handle special case. The INTERRUPT/INTSET registers use the same
173173
// encoding, but INTERRUPT used for read and INTSET for write.
174-
if ((Reg == Xtensa::INTERRUPT) && (RAType == Xtensa::REGISTER_WRITE)) {
174+
if (Reg == Xtensa::INTERRUPT && RAType == Xtensa::REGISTER_WRITE) {
175175
Reg = Xtensa::INTSET;
176176
}
177177

llvm/lib/Target/Xtensa/XtensaRegisterInfo.td

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,6 @@ def MR01 : RegisterClass<"Xtensa", [i32], 32, (add M0, M1)>;
217217
def MR23 : RegisterClass<"Xtensa", [i32], 32, (add M2, M3)>;
218218
def MR : RegisterClass<"Xtensa", [i32], 32, (add MR01, MR23)>;
219219

220-
//def SR : RegisterClass<"Xtensa", [i32], 32, (add
221-
// LBEG, LEND, LCOUNT, SAR, BREG, LITBASE, ACCLO, ACCHI, MR, WINDOWBASE, WINDOWSTART,
222-
// MEMCTL, VECBASE, MISC0, MISC1, MISC2, MISC3)>;
223-
224220
def SR : RegisterClass<"Xtensa", [i32], 32, (add
225221
LBEG, LEND, LCOUNT, SAR, BREG, LITBASE, ACCLO, ACCHI, MR,
226222
WINDOWBASE, WINDOWSTART, IBREAKENABLE, MEMCTL, DDR, IBREAKA0, IBREAKA1,

0 commit comments

Comments
 (0)