This should always be signed chars, so use int8_t. This fixes a miscompile when
[llvm/stm8.git] / test / CodeGen / X86 / prefetch.ll
blob48d2673e4884f33d009d58c4ff35acd7d7042d09
1 ; RUN: llc < %s -march=x86 -mattr=+sse | FileCheck %s
3 define void @t(i8* %ptr) nounwind  {
4 entry:
5 ; CHECK: prefetcht2
6 ; CHECK: prefetcht1
7 ; CHECK: prefetcht0
8 ; CHECK: prefetchnta
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
16 declare void @llvm.prefetch(i8*, i32, i32) nounwind