Skip to content

Commit

Permalink
Since ARM's prefetch implementation predicted the presence of a instr…
Browse files Browse the repository at this point in the history
…uction

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132978 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
bcardosolopes committed Jun 14, 2011
1 parent 9a76733 commit 79abd1c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/CodeGen/ARM/prefetch.ll
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 79abd1c

Please sign in to comment.