blob: d6517f7ef5b13131b2f89f592357d983e81bb9a5 [file] [log] [blame]
Dan Gohmanb243c282008-06-10 00:36:41 +00001; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse > %t
2; RUN: grep prefetchnta %t
3; RUN: grep prefetcht0 %t
4; RUN: grep prefetcht1 %t
5; RUN: grep prefetcht2 %t
Evan Chengd1d68072008-03-08 00:58:38 +00006
7define void @t(i8* %ptr) nounwind {
8entry:
9 tail call void @llvm.prefetch( i8* %ptr, i32 0, i32 1 )
10 tail call void @llvm.prefetch( i8* %ptr, i32 0, i32 2 )
11 tail call void @llvm.prefetch( i8* %ptr, i32 0, i32 3 )
12 tail call void @llvm.prefetch( i8* %ptr, i32 0, i32 0 )
13 ret void
14}
15
16declare void @llvm.prefetch(i8*, i32, i32) nounwind