172339a0d160720c6301d629761e701e5fad56f5eMichael Liao// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-feature +prfchw -emit-llvm -o - %s | FileCheck %s 272339a0d160720c6301d629761e701e5fad56f5eMichael Liao 372339a0d160720c6301d629761e701e5fad56f5eMichael Liao// Don't include mm_malloc.h, it's system specific. 472339a0d160720c6301d629761e701e5fad56f5eMichael Liao#define __MM_MALLOC_H 572339a0d160720c6301d629761e701e5fad56f5eMichael Liao 672339a0d160720c6301d629761e701e5fad56f5eMichael Liao#include <x86intrin.h> 772339a0d160720c6301d629761e701e5fad56f5eMichael Liao 872339a0d160720c6301d629761e701e5fad56f5eMichael Liaovoid prefetch_w(void *p) { 972339a0d160720c6301d629761e701e5fad56f5eMichael Liao return _m_prefetchw(p); 1072339a0d160720c6301d629761e701e5fad56f5eMichael Liao// CHECK: @prefetch_w 1172339a0d160720c6301d629761e701e5fad56f5eMichael Liao// CHECK: call void @llvm.prefetch({{.*}}, i32 1, i32 3, i32 1) 1272339a0d160720c6301d629761e701e5fad56f5eMichael Liao} 13