summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2009-11-03 02:19:31 +0000
committerNate Begeman <natebegeman@mac.com>2009-11-03 02:19:31 +0000
commita21bc75d7874a8999e40d306386c63441b8fdf65 (patch)
tree8f2fd0a8013d4d01015f527302ce809f5d4235e5 /llvm/test/CodeGen
parentf358972fdc412877b227630464a8366d87d0d4ce (diff)
downloadbcm5719-llvm-a21bc75d7874a8999e40d306386c63441b8fdf65.tar.gz
bcm5719-llvm-a21bc75d7874a8999e40d306386c63441b8fdf65.zip
Declare sin & cos as readonly so they match the code in SelectionDAGBuild
llvm-svn: 85853
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/Generic/intrinsics.ll8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/Generic/intrinsics.ll b/llvm/test/CodeGen/Generic/intrinsics.ll
index 9a42c3ef32a..29bc499adfc 100644
--- a/llvm/test/CodeGen/Generic/intrinsics.ll
+++ b/llvm/test/CodeGen/Generic/intrinsics.ll
@@ -14,9 +14,9 @@ define double @test_sqrt(float %F) {
; SIN
-declare float @sinf(float)
+declare float @sinf(float) readonly
-declare double @sin(double)
+declare double @sin(double) readonly
define double @test_sin(float %F) {
%G = call float @sinf( float %F ) ; <float> [#uses=1]
@@ -27,9 +27,9 @@ define double @test_sin(float %F) {
; COS
-declare float @cosf(float)
+declare float @cosf(float) readonly
-declare double @cos(double)
+declare double @cos(double) readonly
define double @test_cos(float %F) {
%G = call float @cosf( float %F ) ; <float> [#uses=1]
OpenPOWER on IntegriCloud