Since ARM's prefetch implementation predicted the presence of a instruction

cache prefetch and now that the info from "prefetch" to "ARMPreload" is present,
only add a testcase for PLI.

llvm-svn: 132978
This commit is contained in:
Bruno Cardoso Lopes 2011-06-14 05:11:46 +00:00
parent 3b0297a98c
commit 29386fb10d
1 changed files with 11 additions and 0 deletions

View File

@ -64,3 +64,14 @@ entry:
}
declare void @llvm.prefetch(i8*, i32, i32, i32) nounwind
define void @t5(i8* %ptr) nounwind {
entry:
; ARM: t5:
; ARM: pli [r0]
; THUMB2: t5:
; THUMB2: pli [r0]
tail call void @llvm.prefetch( i8* %ptr, i32 0, i32 3, i32 0 )
ret void
}