From 9e931f6a64d329276d6253ec1baec9df96f4bbd6 Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Fri, 24 Feb 2012 19:06:05 +0000 Subject: [PATCH] Thumb2 asm aliases for wide bitwise w/ immediate instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151384 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMInstrThumb2.td | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/Target/ARM/ARMInstrThumb2.td b/lib/Target/ARM/ARMInstrThumb2.td index 542996d7c3e..88b6a2f45d1 100644 --- a/lib/Target/ARM/ARMInstrThumb2.td +++ b/lib/Target/ARM/ARMInstrThumb2.td @@ -558,6 +558,11 @@ multiclass T2I_bin_w_irs opcod, string opc, InstrItinClass iii, InstrItinClass iir, InstrItinClass iis, PatFrag opnode, string baseOpc, bit Commutable = 0> : T2I_bin_irs { + // Assembler aliases w/ the ".w" suffix. + def : t2InstAlias(!strconcat(baseOpc, "ri")) rGPR:$Rd, rGPR:$Rn, + t2_so_imm:$imm, pred:$p, + cc_out:$s)>; // Assembler aliases w/o the ".w" suffix. def : t2InstAlias(!strconcat(baseOpc, "rr")) rGPR:$Rd, rGPR:$Rn, @@ -569,6 +574,10 @@ multiclass T2I_bin_w_irs opcod, string opc, cc_out:$s)>; // and with the optional destination operand, too. + def : t2InstAlias(!strconcat(baseOpc, "ri")) rGPR:$Rdn, rGPR:$Rdn, + t2_so_imm:$imm, pred:$p, + cc_out:$s)>; def : t2InstAlias(!strconcat(baseOpc, "rr")) rGPR:$Rdn, rGPR:$Rdn, rGPR:$Rm, pred:$p, -- 2.34.1