summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/EDEmitter.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-12-09 00:39:08 +0000
committerBill Wendling <isanbard@gmail.com>2010-12-09 00:39:08 +0000
commit3392bfc8f3db112b812ee9b3fe8846c75f95d61c (patch)
tree558016091081ff48d362fdaa9120a33fe8f835b4 /llvm/utils/TableGen/EDEmitter.cpp
parent8b54274fcf889486a4ccf1ef1183d76cfde9ebf0 (diff)
downloadbcm5719-llvm-3392bfc8f3db112b812ee9b3fe8846c75f95d61c.tar.gz
bcm5719-llvm-3392bfc8f3db112b812ee9b3fe8846c75f95d61c.zip
The BLX instruction is encoded differently than the BL, because why not? In
particular, the immediate has 20-bits of value instead of 21. And bit 0 is '0' always. Going through the BL fixup encoding was trashing the "bit 0 is '0'" invariant. Attempt to get the encoding at slightly more correct with this. llvm-svn: 121336
Diffstat (limited to 'llvm/utils/TableGen/EDEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/EDEmitter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/EDEmitter.cpp b/llvm/utils/TableGen/EDEmitter.cpp
index 6bd1e639692..3393a07a901 100644
--- a/llvm/utils/TableGen/EDEmitter.cpp
+++ b/llvm/utils/TableGen/EDEmitter.cpp
@@ -590,6 +590,7 @@ static int ARMFlagFromOpName(LiteralConstantEmitter *type,
MISC("t_brtarget", "kOperandTypeARMBranchTarget"); // ?
MISC("bltarget", "kOperandTypeARMBranchTarget"); // ?
MISC("t_bltarget", "kOperandTypeARMBranchTarget"); // ?
+ MISC("t_blxtarget", "kOperandTypeARMBranchTarget"); // ?
MISC("so_reg", "kOperandTypeARMSoReg"); // R, R, I
MISC("shift_so_reg", "kOperandTypeARMSoReg"); // R, R, I
MISC("t2_so_reg", "kOperandTypeThumb2SoReg"); // R, I
OpenPOWER on IntegriCloud