diff options
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(); +} |