From 5361cd2c7d2cd83ac3668bb553a4e63c282d05a2 Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Tue, 13 Oct 2009 17:35:30 +0000 Subject: [PATCH] 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 --- lib/Target/ARM/ARMInstrInfo.td | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Target/ARM/ARMInstrInfo.td b/lib/Target/ARM/ARMInstrInfo.td index 3f1339df197..41932fc29cb 100644 --- a/lib/Target/ARM/ARMInstrInfo.td +++ b/lib/Target/ARM/ARMInstrInfo.td @@ -416,17 +416,20 @@ multiclass AI1_cmp_irs opcod, string opc, PatFrag opnode, def ri : AI1 { + let Inst{20} = 1; let Inst{25} = 1; } def rr : AI1 { + let Inst{20} = 1; let Inst{25} = 0; let isCommutable = Commutable; } def rs : AI1 { + 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; }