-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[Xtensa] Fix encoding of break.n
#155159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Xtensa] Fix encoding of break.n
#155159
Conversation
According to the manual, bits 3...0 should be 1101. (1100 is `movi.n`.)
|
@llvm/pr-subscribers-backend-xtensa Author: Sergei Barannikov (s-barannikov) ChangesAccording to the manual, bits 3...0 should be 1101. (1100 is Full diff: https://github.com/llvm/llvm-project/pull/155159.diff 3 Files Affected:
diff --git a/llvm/lib/Target/Xtensa/XtensaInstrInfo.td b/llvm/lib/Target/Xtensa/XtensaInstrInfo.td
index edcf2473d45cd..632c6a2fba1b6 100644
--- a/llvm/lib/Target/Xtensa/XtensaInstrInfo.td
+++ b/llvm/lib/Target/Xtensa/XtensaInstrInfo.td
@@ -1407,7 +1407,7 @@ let isBarrier = 1, isTerminator = 1 in {
let r = 0x04;
}
- def BREAK_N : RRRN_Inst<0x0C, (outs), (ins uimm4:$imm),
+ def BREAK_N : RRRN_Inst<0x0D, (outs), (ins uimm4:$imm),
"break.n\t$imm", []>, Requires<[HasDensity, HasDebug]> {
bits<4> imm;
diff --git a/llvm/test/MC/Disassembler/Xtensa/debug.txt b/llvm/test/MC/Disassembler/Xtensa/debug.txt
index 1321f09a973c3..5438760c43cfa 100644
--- a/llvm/test/MC/Disassembler/Xtensa/debug.txt
+++ b/llvm/test/MC/Disassembler/Xtensa/debug.txt
@@ -9,7 +9,7 @@
# CHECK-DEBUG: break 1, 1
# CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding
-[0x2c,0xf1]
+[0x2d,0xf1]
# CHECK-DEBUG: break.n 1
# CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding
diff --git a/llvm/test/MC/Xtensa/debug.s b/llvm/test/MC/Xtensa/debug.s
index 36b1f110d120b..4ca6368d19f1c 100644
--- a/llvm/test/MC/Xtensa/debug.s
+++ b/llvm/test/MC/Xtensa/debug.s
@@ -11,7 +11,7 @@ break 1, 1
# Instruction format RRRN
# CHECK-INST: break.n 1
-# CHECK: encoding: [0x2c,0xf1]
+# CHECK: encoding: [0x2d,0xf1]
break.n 1
# Instruction format RRR
|
|
ping |
3 similar comments
|
ping |
|
ping |
|
ping |
|
cc @andreisfr |
|
@andreisfr Ping. |
|
@s-barannikov , thank you very much for the fix. |
|
@s-barannikov, @brad0 , sorry for the long delay. |
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/66/builds/21229 Here is the relevant piece of the build log for the reference |
According to the manual, bits 3...0 should be 1101. (1100 is `movi.n`.)
According to the manual, bits 3...0 should be 1101. (1100 is `movi.n`.)
According to the manual, bits 3...0 should be 1101. (1100 is `movi.n`.)
According to the manual, bits 3...0 should be 1101. (1100 is
movi.n.)