From 5169220624b73c8792f06d91292ed8d57ec444f8 Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Tue, 7 Dec 2010 17:48:24 +0000 Subject: [PATCH] Encode the literal field for tCMPzi instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121153 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMInstrThumb.td | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Target/ARM/ARMInstrThumb.td b/lib/Target/ARM/ARMInstrThumb.td index 67f7da64ddf..2da8aa8ce8e 100644 --- a/lib/Target/ARM/ARMInstrThumb.td +++ b/lib/Target/ARM/ARMInstrThumb.td @@ -926,8 +926,9 @@ def tCMPzi8 : T1pI<(outs), (ins tGPR:$Rn, i32imm:$imm8), IIC_iCMPi, T1General<{1,0,1,?,?}> { // A8.6.35 bits<3> Rn; + bits<8> imm8; let Inst{10-8} = Rn; - let Inst{7-0} = 0x00; + let Inst{7-0} = imm8; } // CMP register