[llvm] r186620 - ARM: Make sure the instruction alias for PLI uses the right subtarget features.

Tilmann Scheller tilmann.scheller at googlemail.com
Thu Jul 18 15:19:59 PDT 2013


Author: tilmann
Date: Thu Jul 18 17:19:59 2013
New Revision: 186620

URL: http://llvm.org/viewvc/llvm-project?rev=186620&view=rev
Log:
ARM: Make sure the instruction alias for PLI uses the right subtarget features.

PLI requires both the Thumb2 and the ARMv7 feature.

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


Modified:
    llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td

Modified: llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td?rev=186620&r1=186619&r2=186620&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td (original)
+++ llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td Thu Jul 18 17:19:59 2013
@@ -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]>;





More information about the llvm-commits mailing list