forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Xtensa] Fix asm parsing of special registers.
Fix parsing of the interrupt feature registers. The "interrupt" register mnemonic is used only with rsr instruction, "intset" and "intclear" register mnemonics are used only with wsr instruction. Also fixed "debugcause" and "prid" registers parsing. Fix tryParseRegister function.
- Loading branch information
Showing
6 changed files
with
129 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# RUN: not llvm-mc -triple xtensa %s 2>&1 | FileCheck %s | ||
|
||
.align 4 | ||
LBL0: | ||
|
||
rsr a0, intclear | ||
# CHECK: :[[#@LINE-1]]:9: error: invalid operand for instruction | ||
|
||
rsr a0, intset | ||
# CHECK: :[[#@LINE-1]]:9: error: invalid operand for instruction | ||
|
||
wsr a1, interrupt | ||
# CHECK: :[[#@LINE-1]]:9: error: invalid operand for instruction | ||
|
||
xsr a1, intset | ||
# CHECK: :[[#@LINE-1]]:9: error: invalid operand for instruction | ||
|
||
xsr a1, interrupt | ||
# CHECK: :[[#@LINE-1]]:9: error: invalid operand for instruction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters