aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-09-12 14:40:06 +0000
committerHal Finkel <hfinkel@anl.gov>2013-09-12 14:40:06 +0000
commitc0b12dfd0a83081c1ebbb55a89c7a2c1f98f1842 (patch)
treee3e267ec506e49515d8be3dd78d79cd3fe3f4b1a /test/MC
parent25d25832d550c1844d27d2034cec1c8d507fa689 (diff)
downloadexternal_llvm-c0b12dfd0a83081c1ebbb55a89c7a2c1f98f1842.zip
external_llvm-c0b12dfd0a83081c1ebbb55a89c7a2c1f98f1842.tar.gz
external_llvm-c0b12dfd0a83081c1ebbb55a89c7a2c1f98f1842.tar.bz2
Mark PPC MFTB and DST (and friends) as deprecated
Use the new instruction deprecation feature to mark mftb (now replaced with mfspr) and dst (along with the other Altivec cache control instructions) as deprecated when targeting cores supporting at least ISA v2.03. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190605 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r--test/MC/PowerPC/deprecated-p7.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/MC/PowerPC/deprecated-p7.s b/test/MC/PowerPC/deprecated-p7.s
new file mode 100644
index 0000000..ded9923
--- /dev/null
+++ b/test/MC/PowerPC/deprecated-p7.s
@@ -0,0 +1,12 @@
+# RUN: llvm-mc -triple powerpc64-unknown-linux-gnu -mcpu=pwr7 -show-encoding < %s 2>&1 | FileCheck %s
+# RUN: llvm-mc -triple powerpc-unknown-linux-gnu -mcpu=601 -show-encoding < %s 2>&1 | FileCheck -check-prefix=CHECK-OLD %s
+
+ mftb 3
+# CHECK: warning: deprecated
+# CHECK: mftb 3
+
+# CHECK-OLD-NOT: warning: deprecated
+# CHECK-OLD: mftb 3
+
+# FIXME: Test dst and friends once we can parse them.
+