summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/ppc-features.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2015-01-06 23:06:41 +0000
committerHal Finkel <hfinkel@anl.gov>2015-01-06 23:06:41 +0000
commit5ba18f7a7217a64623c3abeec997fe9477aa2f4e (patch)
tree217da294718ac37ef00bda2f8623df12ca3f3dd8 /clang/test/Driver/ppc-features.cpp
parent66f755f84f4ed145d0daccc4e49338b48a517874 (diff)
downloadbcm5719-llvm-5ba18f7a7217a64623c3abeec997fe9477aa2f4e.tar.gz
bcm5719-llvm-5ba18f7a7217a64623c3abeec997fe9477aa2f4e.zip
[PowerPC] Add support for -mcmpb
In r225106, support for the CMPB instruction was added to the PowerPC backend. This adds the associated GCC-compatible feature flag. llvm-svn: 225312
Diffstat (limited to 'clang/test/Driver/ppc-features.cpp')
-rw-r--r--clang/test/Driver/ppc-features.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Driver/ppc-features.cpp b/clang/test/Driver/ppc-features.cpp
index c62f5b96973..f7cc879f39a 100644
--- a/clang/test/Driver/ppc-features.cpp
+++ b/clang/test/Driver/ppc-features.cpp
@@ -89,6 +89,12 @@
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-fprnd -mfprnd -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-FPRND %s
// CHECK-FPRND: "-target-feature" "+fprnd"
+// RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-cmpb -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOCMPB %s
+// CHECK-NOCMPB: "-target-feature" "-cmpb"
+
+// RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-cmpb -mcmpb -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-CMPB %s
+// CHECK-CMPB: "-target-feature" "+cmpb"
+
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-vsx -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOVSX %s
// CHECK-NOVSX: "-target-feature" "-vsx"
OpenPOWER on IntegriCloud