diff options
author | Gabor Buella <gabor.buella@intel.com> | 2018-04-11 20:09:09 +0000 |
---|---|---|
committer | Gabor Buella <gabor.buella@intel.com> | 2018-04-11 20:09:09 +0000 |
commit | a052016ef2b1f0098acf61cf10df975350d1d63b (patch) | |
tree | 6648870c1652a6d9a823fc93731fbfe5f6261d6d /clang/test/CodeGen/builtin-wbnoinvd.c | |
parent | 2ef36f3571c83650f3e1bac42c810c289851d865 (diff) | |
download | bcm5719-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/CodeGen/builtin-wbnoinvd.c')
-rw-r--r-- | clang/test/CodeGen/builtin-wbnoinvd.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGen/builtin-wbnoinvd.c b/clang/test/CodeGen/builtin-wbnoinvd.c new file mode 100644 index 00000000000..008a7598830 --- /dev/null +++ b/clang/test/CodeGen/builtin-wbnoinvd.c @@ -0,0 +1,9 @@ +// RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown -target-feature +wbnoinvd -emit-llvm -o - -Wall -Werror | FileCheck %s + +#include <x86intrin.h> + +void test_wbnoinvd(void) { + //CHECK-LABEL: @test_wbnoinvd + //CHECK: call void @llvm.x86.wbnoinvd() + _wbnoinvd(); +} |