1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-feature +prfchw -emit-llvm -o - %s | FileCheck %s
2
3 // Don't include mm_malloc.h, it's system specific.
4 #define __MM_MALLOC_H
5
6 #include <x86intrin.h>
7
test_m_prefetch(void * p)8 void test_m_prefetch(void *p) {
9 return _m_prefetch(p);
10 // CHECK-LABEL: define void @test_m_prefetch
11 // CHECK: call void @llvm.prefetch({{.*}}, i32 0, i32 3, i32 1)
12 }
13
test_m_prefetch_w(void * p)14 void test_m_prefetch_w(void *p) {
15 return _m_prefetchw(p);
16 // CHECK-LABEL: define void @test_m_prefetch_w
17 // CHECK: call void @llvm.prefetch({{.*}}, i32 1, i32 3, i32 1)
18 }
19