xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/prefetchw-builtins.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-feature +prfchw -emit-llvm -o - %s | FileCheck %s
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc // Don't include mm_malloc.h, it's system specific.
4*f4a2713aSLionel Sambuc #define __MM_MALLOC_H
5*f4a2713aSLionel Sambuc 
6*f4a2713aSLionel Sambuc #include <x86intrin.h>
7*f4a2713aSLionel Sambuc 
prefetch_w(void * p)8*f4a2713aSLionel Sambuc void prefetch_w(void *p) {
9*f4a2713aSLionel Sambuc   return _m_prefetchw(p);
10*f4a2713aSLionel Sambuc // CHECK: @prefetch_w
11*f4a2713aSLionel Sambuc // CHECK: call void @llvm.prefetch({{.*}}, i32 1, i32 3, i32 1)
12*f4a2713aSLionel Sambuc }
13