Convert several tests to use temporary files instead of redundantly
[oota-llvm.git] / test / CodeGen / X86 / prefetch.ll
1 ; 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
6
7 define void @t(i8* %ptr) nounwind  {
8 entry:
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
16 declare void @llvm.prefetch(i8*, i32, i32) nounwind