summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/prefetch.ll
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-06-14 05:11:46 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-06-14 05:11:46 +0000
commit29386fb10d55c532e53dc1490b21fd6ff4367176 (patch)
tree405c3e4999bb15835d943ac7b9ea094be68366dc /llvm/test/CodeGen/ARM/prefetch.ll
parent3b0297a98c2dfb3f77c46c4b710b478cd16a15fe (diff)
downloadbcm5719-llvm-29386fb10d55c532e53dc1490b21fd6ff4367176.tar.gz
bcm5719-llvm-29386fb10d55c532e53dc1490b21fd6ff4367176.zip
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
Diffstat (limited to 'llvm/test/CodeGen/ARM/prefetch.ll')
-rw-r--r--llvm/test/CodeGen/ARM/prefetch.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/prefetch.ll b/llvm/test/CodeGen/ARM/prefetch.ll
index 03a6947699a..250a34e8b0e 100644
--- a/llvm/test/CodeGen/ARM/prefetch.ll
+++ b/llvm/test/CodeGen/ARM/prefetch.ll
@@ -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
+}
OpenPOWER on IntegriCloud