aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/pause.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/pause.c')
-rw-r--r--test/CodeGen/pause.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/pause.c b/test/CodeGen/pause.c
new file mode 100644
index 000000000000..1a8e10aec043
--- /dev/null
+++ b/test/CodeGen/pause.c
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -ffreestanding %s -triple=i386-pc-win32 -target-feature -sse2 -emit-llvm -o - -Wall -Werror | FileCheck %s
+// RUN: %clang_cc1 -ffreestanding %s -triple=i386-pc-win32 -target-feature +sse2 -emit-llvm -o - -Wall -Werror | FileCheck %s
+
+
+#include <x86intrin.h>
+
+void test_mm_pause() {
+ // CHECK-LABEL: test_mm_pause
+ // CHECK: call void @llvm.x86.sse2.pause()
+ return _mm_pause();
+}