summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/x86-target-features.c
diff options
context:
space:
mode:
authorGabor Buella <gabor.buella@intel.com>2018-04-11 20:09:09 +0000
committerGabor Buella <gabor.buella@intel.com>2018-04-11 20:09:09 +0000
commita052016ef2b1f0098acf61cf10df975350d1d63b (patch)
tree6648870c1652a6d9a823fc93731fbfe5f6261d6d /clang/test/Driver/x86-target-features.c
parent2ef36f3571c83650f3e1bac42c810c289851d865 (diff)
downloadbcm5719-llvm-a052016ef2b1f0098acf61cf10df975350d1d63b.tar.gz
bcm5719-llvm-a052016ef2b1f0098acf61cf10df975350d1d63b.zip
[x86] wbnoinvd intrinsic
The WBNOINVD instruction writes back all modified cache lines in the processor’s internal cache to main memory but does not invalidate (flush) the internal caches. Reviewers: craig.topper, zvi, ashlykov Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D43817 llvm-svn: 329848
Diffstat (limited to 'clang/test/Driver/x86-target-features.c')
-rw-r--r--clang/test/Driver/x86-target-features.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Driver/x86-target-features.c b/clang/test/Driver/x86-target-features.c
index 530ba04e196..ccc2a6225c4 100644
--- a/clang/test/Driver/x86-target-features.c
+++ b/clang/test/Driver/x86-target-features.c
@@ -60,6 +60,11 @@
// CLWB: "-target-feature" "+clwb"
// NO-CLWB: "-target-feature" "-clwb"
+// RUN: %clang -target i386-unknown-linux-gnu -march=i386 -mwbnoinvd %s -### -o %t.o 2>&1 | FileCheck -check-prefix=WBNOINVD %s
+// RUN: %clang -target i386-unknown-linux-gnu -march=i386 -mno-wbnoinvd %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NO-WBNOINVD %s
+// WBNOINVD: "-target-feature" "+wbnoinvd"
+// NO-WBNOINVD: "-target-feature" "-wbnoinvd"
+
// RUN: %clang -target i386-unknown-linux-gnu -march=i386 -mmovbe %s -### -o %t.o 2>&1 | FileCheck -check-prefix=MOVBE %s
// RUN: %clang -target i386-unknown-linux-gnu -march=i386 -mno-movbe %s -### -o %t.o 2>&1 | FileCheck -check-prefix=NO-MOVBE %s
// MOVBE: "-target-feature" "+movbe"
OpenPOWER on IntegriCloud