diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-07-27 18:19:32 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-07-27 18:19:32 +0000 |
commit | 66ee037863ea3b03351092ce941d35920a7cd6af (patch) | |
tree | 1049987ecd541455cf944d25b4bf3fe67d972a07 | |
parent | ac0a1f6146ad5d63bf388410e083998432136f83 (diff) | |
download | bcm5719-llvm-66ee037863ea3b03351092ce941d35920a7cd6af.tar.gz bcm5719-llvm-66ee037863ea3b03351092ce941d35920a7cd6af.zip |
ARM assembly parsing aliases for extend instructions w/o rotate.
llvm-svn: 136229
-rw-r--r-- | llvm/lib/Target/ARM/ARMInstrInfo.td | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrInfo.td b/llvm/lib/Target/ARM/ARMInstrInfo.td index aa1f07d7691..6527e72642f 100644 --- a/llvm/lib/Target/ARM/ARMInstrInfo.td +++ b/llvm/lib/Target/ARM/ARMInstrInfo.td @@ -4342,3 +4342,25 @@ def : InstAlias<"rsc${s}${p} $Rdn, $shift", // SSAT optional shift operand. def : InstAlias<"ssat${p} $Rd, $sat_imm, $Rn", (SSAT GPR:$Rd, imm1_32:$sat_imm, GPR:$Rn, 0, pred:$p)>; + + +// Extend instruction optional rotate operand. +def : InstAlias<"sxtab${p} $Rd, $Rn, $Rm", + (SXTAB GPR:$Rd, GPR:$Rn, GPR:$Rm, 0, pred:$p)>; +def : InstAlias<"sxtah${p} $Rd, $Rn, $Rm", + (SXTAH GPR:$Rd, GPR:$Rn, GPR:$Rm, 0, pred:$p)>; +def : InstAlias<"sxtab16${p} $Rd, $Rn, $Rm", + (SXTAB16 GPR:$Rd, GPR:$Rn, GPR:$Rm, 0, pred:$p)>; +def : InstAlias<"sxtb${p} $Rd, $Rm", (SXTB GPR:$Rd, GPR:$Rm, 0, pred:$p)>; +def : InstAlias<"sxtb16${p} $Rd, $Rm", (SXTB16 GPR:$Rd, GPR:$Rm, 0, pred:$p)>; +def : InstAlias<"sxth${p} $Rd, $Rm", (SXTH GPR:$Rd, GPR:$Rm, 0, pred:$p)>; + +def : InstAlias<"uxtab${p} $Rd, $Rn, $Rm", + (UXTAB GPR:$Rd, GPR:$Rn, GPR:$Rm, 0, pred:$p)>; +def : InstAlias<"uxtah${p} $Rd, $Rn, $Rm", + (UXTAH GPR:$Rd, GPR:$Rn, GPR:$Rm, 0, pred:$p)>; +def : InstAlias<"uxtab16${p} $Rd, $Rn, $Rm", + (UXTAB16 GPR:$Rd, GPR:$Rn, GPR:$Rm, 0, pred:$p)>; +def : InstAlias<"uxtb${p} $Rd, $Rm", (UXTB GPR:$Rd, GPR:$Rm, 0, pred:$p)>; +def : InstAlias<"uxtb16${p} $Rd, $Rm", (UXTB16 GPR:$Rd, GPR:$Rm, 0, pred:$p)>; +def : InstAlias<"uxth${p} $Rd, $Rm", (UXTH GPR:$Rd, GPR:$Rm, 0, pred:$p)>; |