diff options
author | Johnny Chen <johnny.chen@apple.com> | 2010-01-13 21:00:26 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2010-01-13 21:00:26 +0000 |
commit | b34888b6d043903071a41a38fcad536acea18c8c (patch) | |
tree | d1f303f2a3508c13fd32764acae4001519251743 /llvm/lib | |
parent | 8521f06ced94e2c6aa77380f2a9d324ab4625f8c (diff) | |
download | llvm-b34888b6d043903071a41a38fcad536acea18c8c.zip llvm-b34888b6d043903071a41a38fcad536acea18c8c.tar.gz llvm-b34888b6d043903071a41a38fcad536acea18c8c.tar.bz2 |
Fixed a couple of places for Thumb MOV where encoding bits are underspecified.
llvm-svn: 93349
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/ARM/ARMInstrThumb.td | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrThumb.td b/llvm/lib/Target/ARM/ARMInstrThumb.td index 03ab0d4..cc2dd04 100644 --- a/llvm/lib/Target/ARM/ARMInstrThumb.td +++ b/llvm/lib/Target/ARM/ARMInstrThumb.td @@ -208,9 +208,8 @@ let isReturn = 1, isTerminator = 1, isBarrier = 1 in { let isBranch = 1, isTerminator = 1, isBarrier = 1, isIndirectBranch = 1 in { def tBRIND : TI<(outs), (ins GPR:$dst), IIC_Br, "mov\tpc, $dst", [(brind GPR:$dst)]>, - T1Special<{1,0,?,?}> { - // <Rd> = pc - let Inst{7} = 1; + T1Special<{1,0,1,1}> { + // <Rd> = Inst{7:2-0} = pc let Inst{2-0} = 0b111; } } @@ -748,7 +747,7 @@ let usesCustomInserter = 1 in // Expanded after instruction selection. // 16-bit movcc in IT blocks for Thumb2. def tMOVCCr : T1pIt<(outs GPR:$dst), (ins GPR:$lhs, GPR:$rhs), IIC_iCMOVr, "mov", "\t$dst, $rhs", []>, - T1Special<{1,0,?,?}>; + T1Special<{1,0,1,1}>; def tMOVCCi : T1pIt<(outs GPR:$dst), (ins GPR:$lhs, i32imm:$rhs), IIC_iCMOVi, "mov", "\t$dst, $rhs", []>, |