16
16
; GFX9-NOT: v_fract_f32
17
17
; GCN: v_sin_f32
18
18
; GCN-NOT: v_sin_f32
19
- define amdgpu_kernel void @sin_f32 (ptr addrspace (1 ) %out , float %x ) # 1 {
19
+ define amdgpu_kernel void @sin_f32 (ptr addrspace (1 ) %out , float %x ) {
20
20
%sin = call float @llvm.sin.f32 (float %x )
21
21
store float %sin , ptr addrspace (1 ) %out
22
22
ret void
@@ -29,7 +29,7 @@ define amdgpu_kernel void @sin_f32(ptr addrspace(1) %out, float %x) #1 {
29
29
; GFX9-NOT: v_fract_f32
30
30
; GCN: v_sin_f32
31
31
; GCN-NOT: v_sin_f32
32
- define amdgpu_kernel void @safe_sin_3x_f32 (ptr addrspace (1 ) %out , float %x ) # 1 {
32
+ define amdgpu_kernel void @safe_sin_3x_f32 (ptr addrspace (1 ) %out , float %x ) {
33
33
%y = fmul float 3 .0 , %x
34
34
%sin = call float @llvm.sin.f32 (float %y )
35
35
store float %sin , ptr addrspace (1 ) %out
@@ -44,9 +44,9 @@ define amdgpu_kernel void @safe_sin_3x_f32(ptr addrspace(1) %out, float %x) #1 {
44
44
; GFX9-NOT: v_fract_f32
45
45
; GCN: v_sin_f32
46
46
; GCN-NOT: v_sin_f32
47
- define amdgpu_kernel void @unsafe_sin_3x_f32 (ptr addrspace (1 ) %out , float %x ) # 2 {
48
- %y = fmul float 3 .0 , %x
49
- %sin = call float @llvm.sin.f32 (float %y )
47
+ define amdgpu_kernel void @unsafe_sin_3x_f32 (ptr addrspace (1 ) %out , float %x ) {
48
+ %y = fmul reassoc float 3 .0 , %x
49
+ %sin = call reassoc float @llvm.sin.f32 (float %y )
50
50
store float %sin , ptr addrspace (1 ) %out
51
51
ret void
52
52
}
@@ -59,7 +59,7 @@ define amdgpu_kernel void @unsafe_sin_3x_f32(ptr addrspace(1) %out, float %x) #2
59
59
; GFX9-NOT: v_fract_f32
60
60
; GCN: v_sin_f32
61
61
; GCN-NOT: v_sin_f32
62
- define amdgpu_kernel void @fmf_sin_3x_f32 (ptr addrspace (1 ) %out , float %x ) # 1 {
62
+ define amdgpu_kernel void @fmf_sin_3x_f32 (ptr addrspace (1 ) %out , float %x ) {
63
63
%y = fmul reassoc float 3 .0 , %x
64
64
%sin = call reassoc float @llvm.sin.f32 (float %y )
65
65
store float %sin , ptr addrspace (1 ) %out
@@ -73,7 +73,7 @@ define amdgpu_kernel void @fmf_sin_3x_f32(ptr addrspace(1) %out, float %x) #1 {
73
73
; GFX9-NOT: v_fract_f32
74
74
; GCN: v_sin_f32
75
75
; GCN-NOT: v_sin_f32
76
- define amdgpu_kernel void @safe_sin_2x_f32 (ptr addrspace (1 ) %out , float %x ) # 1 {
76
+ define amdgpu_kernel void @safe_sin_2x_f32 (ptr addrspace (1 ) %out , float %x ) {
77
77
%y = fmul float 2 .0 , %x
78
78
%sin = call float @llvm.sin.f32 (float %y )
79
79
store float %sin , ptr addrspace (1 ) %out
@@ -88,9 +88,9 @@ define amdgpu_kernel void @safe_sin_2x_f32(ptr addrspace(1) %out, float %x) #1 {
88
88
; GFX9-NOT: v_fract_f32
89
89
; GCN: v_sin_f32
90
90
; GCN-NOT: v_sin_f32
91
- define amdgpu_kernel void @unsafe_sin_2x_f32 (ptr addrspace (1 ) %out , float %x ) # 2 {
92
- %y = fmul float 2 .0 , %x
93
- %sin = call float @llvm.sin.f32 (float %y )
91
+ define amdgpu_kernel void @unsafe_sin_2x_f32 (ptr addrspace (1 ) %out , float %x ) {
92
+ %y = fmul reassoc float 2 .0 , %x
93
+ %sin = call reassoc float @llvm.sin.f32 (float %y )
94
94
store float %sin , ptr addrspace (1 ) %out
95
95
ret void
96
96
}
@@ -103,7 +103,7 @@ define amdgpu_kernel void @unsafe_sin_2x_f32(ptr addrspace(1) %out, float %x) #2
103
103
; GFX9-NOT: v_fract_f32
104
104
; GCN: v_sin_f32
105
105
; GCN-NOT: v_sin_f32
106
- define amdgpu_kernel void @fmf_sin_2x_f32 (ptr addrspace (1 ) %out , float %x ) # 1 {
106
+ define amdgpu_kernel void @fmf_sin_2x_f32 (ptr addrspace (1 ) %out , float %x ) {
107
107
%y = fmul reassoc float 2 .0 , %x
108
108
%sin = call reassoc float @llvm.sin.f32 (float %y )
109
109
store float %sin , ptr addrspace (1 ) %out
@@ -117,7 +117,7 @@ define amdgpu_kernel void @fmf_sin_2x_f32(ptr addrspace(1) %out, float %x) #1 {
117
117
; GFX9-NOT: v_fract_f32
118
118
; GCN: v_sin_f32
119
119
; GCN-NOT: v_sin_f32
120
- define amdgpu_kernel void @safe_sin_cancel_f32 (ptr addrspace (1 ) %out , float %x ) # 1 {
120
+ define amdgpu_kernel void @safe_sin_cancel_f32 (ptr addrspace (1 ) %out , float %x ) {
121
121
%y = fmul float 0x401921FB60000000 , %x
122
122
%sin = call float @llvm.sin.f32 (float %y )
123
123
store float %sin , ptr addrspace (1 ) %out
@@ -131,9 +131,9 @@ define amdgpu_kernel void @safe_sin_cancel_f32(ptr addrspace(1) %out, float %x)
131
131
; GFX9-NOT: v_fract_f32
132
132
; GCN: v_sin_f32
133
133
; GCN-NOT: v_sin_f32
134
- define amdgpu_kernel void @unsafe_sin_cancel_f32 (ptr addrspace (1 ) %out , float %x ) # 2 {
135
- %y = fmul float 0x401921FB60000000 , %x
136
- %sin = call float @llvm.sin.f32 (float %y )
134
+ define amdgpu_kernel void @unsafe_sin_cancel_f32 (ptr addrspace (1 ) %out , float %x ) {
135
+ %y = fmul reassoc float 0x401921FB60000000 , %x
136
+ %sin = call reassoc float @llvm.sin.f32 (float %y )
137
137
store float %sin , ptr addrspace (1 ) %out
138
138
ret void
139
139
}
@@ -145,7 +145,7 @@ define amdgpu_kernel void @unsafe_sin_cancel_f32(ptr addrspace(1) %out, float %x
145
145
; GFX9-NOT: v_fract_f32
146
146
; GCN: v_sin_f32
147
147
; GCN-NOT: v_sin_f32
148
- define amdgpu_kernel void @fmf_sin_cancel_f32 (ptr addrspace (1 ) %out , float %x ) # 1 {
148
+ define amdgpu_kernel void @fmf_sin_cancel_f32 (ptr addrspace (1 ) %out , float %x ) {
149
149
%y = fmul reassoc float 0x401921FB60000000 , %x
150
150
%sin = call reassoc float @llvm.sin.f32 (float %y )
151
151
store float %sin , ptr addrspace (1 ) %out
@@ -164,7 +164,7 @@ define amdgpu_kernel void @fmf_sin_cancel_f32(ptr addrspace(1) %out, float %x) #
164
164
; GCN: v_sin_f32
165
165
; GCN: v_sin_f32
166
166
; GCN-NOT: v_sin_f32
167
- define amdgpu_kernel void @sin_v4f32 (ptr addrspace (1 ) %out , <4 x float > %vx ) # 1 {
167
+ define amdgpu_kernel void @sin_v4f32 (ptr addrspace (1 ) %out , <4 x float > %vx ) {
168
168
%sin = call <4 x float > @llvm.sin.v4f32 ( <4 x float > %vx )
169
169
store <4 x float > %sin , ptr addrspace (1 ) %out
170
170
ret void
@@ -174,5 +174,3 @@ declare float @llvm.sin.f32(float) #0
174
174
declare <4 x float > @llvm.sin.v4f32 (<4 x float >) #0
175
175
176
176
attributes #0 = { nounwind readnone }
177
- attributes #1 = { nounwind "unsafe-fp-math" ="false" }
178
- attributes #2 = { nounwind "unsafe-fp-math" ="true" }
0 commit comments