diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-06-14 05:11:46 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-06-14 05:11:46 +0000 |
commit | 29386fb10d55c532e53dc1490b21fd6ff4367176 (patch) | |
tree | 405c3e4999bb15835d943ac7b9ea094be68366dc /llvm/test/CodeGen/ARM/prefetch.ll | |
parent | 3b0297a98c2dfb3f77c46c4b710b478cd16a15fe (diff) | |
download | bcm5719-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.ll | 11 |
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 +} |