diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-06-14 04:58:37 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-06-14 04:58:37 +0000 |
commit | 9a767330f555f21d6ef311d3a348d3a44f306d35 (patch) | |
tree | ec299eebaeeec94bafc4f990489d597c62889eb6 /test/Assembler | |
parent | 3a42565ccb169ec4acf79698b38d7da880f13364 (diff) |
Add one more argument to the prefetch intrinsic to indicate whether it's a data
or instruction cache access. Update the targets to match it and also teach
autoupgrade.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132976 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler')
-rw-r--r-- | test/Assembler/AutoUpgradeIntrinsics.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Assembler/AutoUpgradeIntrinsics.ll b/test/Assembler/AutoUpgradeIntrinsics.ll index 417493f716..20beb49566 100644 --- a/test/Assembler/AutoUpgradeIntrinsics.ll +++ b/test/Assembler/AutoUpgradeIntrinsics.ll @@ -109,3 +109,11 @@ define void @f(<4 x float> %A, i8* %B, <2 x double> %C, i32 %D) { call void @llvm.x86.sse2.movnt.i(i8* %B, i32 %D) ret void } + +declare void @llvm.prefetch(i8*, i32, i32) nounwind + +define void @p(i8* %ptr) { +; CHECK: llvm.prefetch(i8* %ptr, i32 0, i32 1, i32 1) + tail call void @llvm.prefetch(i8* %ptr, i32 0, i32 1) + ret void +} |