diff options
author | Olivier Sallenave <ohsallen@us.ibm.com> | 2015-04-09 17:38:50 +0000 |
---|---|---|
committer | Olivier Sallenave <ohsallen@us.ibm.com> | 2015-04-09 17:38:50 +0000 |
commit | 5a41f92f694aa2295f48b7d89943421ebb79cf16 (patch) | |
tree | a2f10eee55471d6a3ab4f45fd9fb9509498d5f2e /clang/test/Driver/ppc-features.cpp | |
parent | 0daf55703d64299f25d01d793cca3b8fbb6a5398 (diff) | |
download | bcm5719-llvm-5a41f92f694aa2295f48b7d89943421ebb79cf16.tar.gz bcm5719-llvm-5a41f92f694aa2295f48b7d89943421ebb79cf16.zip |
Added flag to disable isel instruction on PPC target. Using regular branches instead of isel is more efficient in some cases.
llvm-svn: 234509
Diffstat (limited to 'clang/test/Driver/ppc-features.cpp')
-rw-r--r-- | clang/test/Driver/ppc-features.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Driver/ppc-features.cpp b/clang/test/Driver/ppc-features.cpp index 39d6357dccd..8ef83184693 100644 --- a/clang/test/Driver/ppc-features.cpp +++ b/clang/test/Driver/ppc-features.cpp @@ -77,6 +77,12 @@ // RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-mfcrf -mmfcrf -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-MFCRF %s // CHECK-MFCRF: "-target-feature" "+mfocrf" +// RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-isel -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOISEL %s +// CHECK-NOISEL: "-target-feature" "-isel" + +// RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-isel -misel -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-ISEL %s +// CHECK-ISEL: "-target-feature" "+isel" + // RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-popcntd -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOPOPCNTD %s // CHECK-NOPOPCNTD: "-target-feature" "-popcntd" |