Declare sin & cos as readonly so they match the code in SelectionDAGBuild
authorNate Begeman <natebegeman@mac.com>
Tue, 3 Nov 2009 02:19:31 +0000 (02:19 +0000)
committerNate Begeman <natebegeman@mac.com>
Tue, 3 Nov 2009 02:19:31 +0000 (02:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85853 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/Generic/intrinsics.ll

index 9a42c3ef32a1f0ebbcb8cb10087c98918ebb3e3e..29bc499adfc598e9b0f82668ff3c05858df85d8e 100644 (file)
@@ -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]