diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-03-30 18:39:43 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-03-30 18:39:43 +0000 |
commit | 8f1148bd07d57a1324ed39250642119baa540b7c (patch) | |
tree | 012fbf1315de39120f38167dac7f39a6b60f7ea9 /lib/Target/ARM/AsmParser/ARMAsmParser.cpp | |
parent | ecf2d9fc0d5ea162571b0e229f47b22e84c93eaa (diff) |
ARM can only use narrow encoding for low regs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153765 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/AsmParser/ARMAsmParser.cpp')
-rw-r--r-- | lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index 10e3885406..f8edced208 100644 --- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -6857,6 +6857,7 @@ processInstruction(MCInst &Inst, // instead of T3. For compatibility with the system 'as'. Make sure the // wide encoding wasn't explicit. if (Inst.getOperand(0).getReg() != Inst.getOperand(1).getReg() || + !isARMLowRegister(Inst.getOperand(0).getReg()) || (unsigned)Inst.getOperand(2).getImm() > 255 || ((!inITBlock() && Inst.getOperand(5).getReg() != ARM::CPSR) || (inITBlock() && Inst.getOperand(5).getReg() != 0)) || |