From 0096dbd50df50a08d729e1219f78d43f3e1583b3 Mon Sep 17 00:00:00 2001 From: Hal Finkel Date: Thu, 12 Sep 2013 14:40:06 +0000 Subject: 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. llvm-svn: 190605 --- llvm/test/MC/PowerPC/deprecated-p7.s | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 llvm/test/MC/PowerPC/deprecated-p7.s (limited to 'llvm/test') diff --git a/llvm/test/MC/PowerPC/deprecated-p7.s b/llvm/test/MC/PowerPC/deprecated-p7.s new file mode 100644 index 00000000000..ded99235600 --- /dev/null +++ b/llvm/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. + -- cgit v1.2.3