summaryrefslogtreecommitdiffstats
path: root/llvm/test/Feature
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-02-28 19:31:42 +0000
committerChris Lattner <sabre@nondot.org>2005-02-28 19:31:42 +0000
commit5d43cbc6ac98dc419bbbc957a0c3ebd31f1df583 (patch)
tree758f25cc9e1b79c92749a01d6eff3c6daab59b1a /llvm/test/Feature
parent811107350ac6d2e5dfb719666f1ecc31ee3a575e (diff)
downloadbcm5719-llvm-5d43cbc6ac98dc419bbbc957a0c3ebd31f1df583.tar.gz
bcm5719-llvm-5d43cbc6ac98dc419bbbc957a0c3ebd31f1df583.zip
Add a test for llvm.prefetch.
llvm-svn: 20379
Diffstat (limited to 'llvm/test/Feature')
-rw-r--r--llvm/test/Feature/intrinsics.ll3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/Feature/intrinsics.ll b/llvm/test/Feature/intrinsics.ll
index 12ecf49c723..251b9d1dcd0 100644
--- a/llvm/test/Feature/intrinsics.ll
+++ b/llvm/test/Feature/intrinsics.ll
@@ -6,6 +6,8 @@
declare bool %llvm.isunordered(float, float)
declare bool %llvm.isunordered(double, double)
+declare void %llvm.prefetch(sbyte*, uint, uint)
+
implementation
; Test llvm intrinsics
@@ -13,5 +15,6 @@ implementation
void %libm() {
call bool %llvm.isunordered(float 0.0, float 1.0)
call bool %llvm.isunordered(double 0.0, double 0x7FF8000000000000)
+ call void %llvm.prefetch(sbyte* null, uint 1, uint 3)
ret void
}
OpenPOWER on IntegriCloud