diff options
author | Bob Wilson <bob.wilson@apple.com> | 2009-10-13 17:35:30 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2009-10-13 17:35:30 +0000 |
commit | ce7c9ebddf4e1742e71087fae5abf239061475f2 (patch) | |
tree | a4b8aeca51ec16126b112cabb1ac1367044856fb | |
parent | f0976f41d9100957bf1eca01436dc8546d95ee39 (diff) | |
download | external_llvm-ce7c9ebddf4e1742e71087fae5abf239061475f2.zip external_llvm-ce7c9ebddf4e1742e71087fae5abf239061475f2.tar.gz external_llvm-ce7c9ebddf4e1742e71087fae5abf239061475f2.tar.bz2 |
Add some ARM instruction encoding bits.
Patch by Johnny Chen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83983 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/ARM/ARMInstrInfo.td | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMInstrInfo.td b/lib/Target/ARM/ARMInstrInfo.td index 3f1339d..41932fc 100644 --- a/lib/Target/ARM/ARMInstrInfo.td +++ b/lib/Target/ARM/ARMInstrInfo.td @@ -416,17 +416,20 @@ multiclass AI1_cmp_irs<bits<4> opcod, string opc, PatFrag opnode, def ri : AI1<opcod, (outs), (ins GPR:$a, so_imm:$b), DPFrm, IIC_iCMPi, opc, " $a, $b", [(opnode GPR:$a, so_imm:$b)]> { + let Inst{20} = 1; let Inst{25} = 1; } def rr : AI1<opcod, (outs), (ins GPR:$a, GPR:$b), DPFrm, IIC_iCMPr, opc, " $a, $b", [(opnode GPR:$a, GPR:$b)]> { + let Inst{20} = 1; let Inst{25} = 0; let isCommutable = Commutable; } def rs : AI1<opcod, (outs), (ins GPR:$a, so_reg:$b), DPSoRegFrm, IIC_iCMPsr, opc, " $a, $b", [(opnode GPR:$a, so_reg:$b)]> { + let Inst{20} = 1; let Inst{25} = 0; } } @@ -934,6 +937,7 @@ def MOVi16 : AI1<0b1000, (outs GPR:$dst), (ins i32imm:$src), "movw", " $dst, $src", [(set GPR:$dst, imm0_65535:$src)]>, Requires<[IsARM, HasV6T2]> { + let Inst{20} = 0; let Inst{25} = 1; } @@ -945,6 +949,7 @@ def MOVTi16 : AI1<0b1010, (outs GPR:$dst), (ins GPR:$src, i32imm:$imm), (or (and GPR:$src, 0xffff), lo16AllZero:$imm))]>, UnaryDP, Requires<[IsARM, HasV6T2]> { + let Inst{20} = 0; let Inst{25} = 1; } |