[llvm-commits] [llvm] r137997 - /llvm/trunk/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
Owen Anderson
resistor at mac.com
Thu Aug 18 15:15:25 PDT 2011
Author: resistor
Date: Thu Aug 18 17:15:25 2011
New Revision: 137997
URL: http://llvm.org/viewvc/llvm-project?rev=137997&view=rev
Log:
Remember to fill in some operands so we can print _something_ coherent even when decoding the CPS instruction soft-fails.
Modified:
llvm/trunk/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
Modified: llvm/trunk/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/Disassembler/ARMDisassembler.cpp?rev=137997&r1=137996&r2=137997&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/Disassembler/ARMDisassembler.cpp (original)
+++ llvm/trunk/lib/Target/ARM/Disassembler/ARMDisassembler.cpp Thu Aug 18 17:15:25 2011
@@ -1340,9 +1340,12 @@
Inst.setOpcode(ARM::CPS1p);
Inst.addOperand(MCOperand::CreateImm(mode));
if (iflags) CHECK(S, Unpredictable);
- } else
+ } else {
// imod == '00' && M == '0' --> UNPREDICTABLE
+ Inst.setOpcode(ARM::CPS1p);
+ Inst.addOperand(MCOperand::CreateImm(mode));
CHECK(S, Unpredictable);
+ }
return S;
}
More information about the llvm-commits
mailing list