summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMInstrThumb2.td
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
commitbbcea55b68fad8116c29b3e831c5df398d558569 (patch)
tree03882a64f841f2b8d0d298342337a61970c24114 /lib/Target/ARM/ARMInstrThumb2.td
parent4e518fd941b119834b5764708fbabf41adc45040 (diff)
downloadllvm-bbcea55b68fad8116c29b3e831c5df398d558569.tar.gz
llvm-bbcea55b68fad8116c29b3e831c5df398d558569.tar.bz2
llvm-bbcea55b68fad8116c29b3e831c5df398d558569.tar.xz
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>. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186620 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMInstrThumb2.td')
-rw-r--r--lib/Target/ARM/ARMInstrThumb2.td4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMInstrThumb2.td b/lib/Target/ARM/ARMInstrThumb2.td
index 19d76e5017..f014e02de2 100644
--- a/lib/Target/ARM/ARMInstrThumb2.td
+++ b/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]>;