summaryrefslogtreecommitdiff
path: root/test/CodeGen/builtin-wbnoinvd.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/builtin-wbnoinvd.c')
-rw-r--r--test/CodeGen/builtin-wbnoinvd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/builtin-wbnoinvd.c b/test/CodeGen/builtin-wbnoinvd.c
new file mode 100644
index 0000000000000..5bea5acf5b090
--- /dev/null
+++ b/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 <immintrin.h>
+
+void test_wbnoinvd(void) {
+ //CHECK-LABEL: @test_wbnoinvd
+ //CHECK: call void @llvm.x86.wbnoinvd()
+ _wbnoinvd();
+}