summaryrefslogtreecommitdiff
path: root/test/CodeGen/builtin-clwb.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/builtin-clwb.c')
-rw-r--r--test/CodeGen/builtin-clwb.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/builtin-clwb.c b/test/CodeGen/builtin-clwb.c
new file mode 100644
index 000000000000..96d00a6a7ca1
--- /dev/null
+++ b/test/CodeGen/builtin-clwb.c
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-apple-darwin -target-feature +clwb -emit-llvm -o - -Wall -Werror | FileCheck %s
+
+#include <x86intrin.h>
+
+void test_mm_clwb(const void *__m) {
+ //CHECK-LABEL: @test_mm_clwb
+ //CHECK: @llvm.x86.clwb
+ _mm_clwb(__m);
+}