ARM: Make sure the instruction alias for PLI uses the right subtarget features.
authorTilmann Scheller <tilmann.scheller@googlemail.com>
Thu, 18 Jul 2013 22:19:59 +0000 (22:19 +0000)
committerTilmann Scheller <tilmann.scheller@googlemail.com>
Thu, 18 Jul 2013 22:19:59 +0000 (22:19 +0000)
PLI requires both the Thumb2 and the ARMv7 feature.

Related to <rdar://problem/14403733>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186620 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMInstrThumb2.td

index 19d76e5017b8071bbd315ec92fa5227c335ceaa8..f014e02de2c4b8971bb9933b065d1fcdfdad2f67 100644 (file)
@@ -4429,4 +4429,6 @@ def : t2InstAlias<"add${p} $Rd, pc, $imm",
                   (t2ADR rGPR:$Rd, imm0_4095:$imm, pred:$p)>;
 
 // PLI with alternate literal form.
-def : t2InstAlias<"pli${p} $addr", (t2PLIpci t2ldr_pcrel_imm12:$addr, pred:$p)>;
+def : InstAlias<"pli${p} $addr",
+                 (t2PLIpci  t2ldr_pcrel_imm12:$addr, pred:$p)>,
+      Requires<[IsThumb2,HasV7]>;