summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/pause.c
blob: 1a8e10aec043c5ce9f3f9235548e3398f24a437f (plain)
1
2
3
4
5
6
7
8
9
10
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();
}