diff options
author | Hal Finkel <hfinkel@anl.gov> | 2015-01-06 23:06:41 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2015-01-06 23:06:41 +0000 |
commit | 31d9c8d0e44b388babaf66caaa9734179fdaca32 (patch) | |
tree | 117a7011e6911261886d9e7d62ba21f9e2591c6f /test/Driver/ppc-features.cpp | |
parent | 3be91049da12170840631e7b0ff67e1c455f8ca4 (diff) | |
download | clang-31d9c8d0e44b388babaf66caaa9734179fdaca32.tar.gz |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@225312 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/ppc-features.cpp')
-rw-r--r-- | test/Driver/ppc-features.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Driver/ppc-features.cpp b/test/Driver/ppc-features.cpp index c62f5b9697..f7cc879f39 100644 --- a/test/Driver/ppc-features.cpp +++ b/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" |