summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTilmann Scheller <tilmann.scheller@googlemail.com>2013-07-18 22:19:59 +0000
committerTilmann Scheller <tilmann.scheller@googlemail.com>2013-07-18 22:19:59 +0000
commitc8a06ff6007e4c503bcbfe15b558d1edd24da44f (patch)
tree2c8440ae45e51f1a4059024b87eba1d3c59be149
parent85e988bbeaa0b77729cd631fd60318446ce81631 (diff)
downloadbcm5719-llvm-c8a06ff6007e4c503bcbfe15b558d1edd24da44f.tar.gz
bcm5719-llvm-c8a06ff6007e4c503bcbfe15b558d1edd24da44f.zip
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>. llvm-svn: 186620
-rw-r--r--llvm/lib/Target/ARM/ARMInstrThumb2.td4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrThumb2.td b/llvm/lib/Target/ARM/ARMInstrThumb2.td
index 19d76e5017b..f014e02de2c 100644
--- a/llvm/lib/Target/ARM/ARMInstrThumb2.td
+++ b/llvm/lib/Target/ARM/ARMInstrThumb2.td
@@ -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]>;
OpenPOWER on IntegriCloud