Skip to content

Commit 9dc207f

Browse files
committed
[Xtensa] Minor fix.
1 parent b9a6a95 commit 9dc207f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/Xtensa/AsmParser/XtensaAsmParser.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ struct XtensaOperand : public MCParsedAsmOperand {
193193

194194
bool isImm1_16() const { return isImm(1, 16); }
195195

196-
bool isImm1n_15() const { return (isImm(1, 15) || isImm(-1, -1)); }
196+
// Check that value is either equals (-1) or from [1,15] range.
197+
bool isImm1n_15() const { return isImm(1, 15) || isImm(-1, -1); }
197198

198199
bool isImm32n_95() const { return isImm(-32, 95); }
199200

0 commit comments

Comments
 (0)