@@ -180,12 +180,15 @@ define float @tan(float %x) #0 {
180180define float @acos (float %x ) #0 {
181181; CHECK-LABEL: acos:
182182; CHECK: # %bb.0:
183- ; CHECK-NEXT: pushl %eax
183+ ; CHECK-NEXT: subl $12, %esp
184+ ; CHECK-NEXT: flds {{[0-9]+}}(%esp)
185+ ; CHECK-NEXT: fstpl (%esp)
186+ ; CHECK-NEXT: wait
187+ ; CHECK-NEXT: calll _acos
188+ ; CHECK-NEXT: fstps {{[0-9]+}}(%esp)
184189; CHECK-NEXT: flds {{[0-9]+}}(%esp)
185- ; CHECK-NEXT: fstps (%esp)
186190; CHECK-NEXT: wait
187- ; CHECK-NEXT: calll _acosf
188- ; CHECK-NEXT: popl %eax
191+ ; CHECK-NEXT: addl $12, %esp
189192; CHECK-NEXT: retl
190193 %result = call float @llvm.experimental.constrained.acos.f32 (float %x , metadata !"round.dynamic" , metadata !"fpexcept.strict" ) #0
191194 ret float %result
@@ -194,12 +197,15 @@ define float @acos(float %x) #0 {
194197define float @asin (float %x ) #0 {
195198; CHECK-LABEL: asin:
196199; CHECK: # %bb.0:
197- ; CHECK-NEXT: pushl %eax
200+ ; CHECK-NEXT: subl $12, %esp
201+ ; CHECK-NEXT: flds {{[0-9]+}}(%esp)
202+ ; CHECK-NEXT: fstpl (%esp)
203+ ; CHECK-NEXT: wait
204+ ; CHECK-NEXT: calll _asin
205+ ; CHECK-NEXT: fstps {{[0-9]+}}(%esp)
198206; CHECK-NEXT: flds {{[0-9]+}}(%esp)
199- ; CHECK-NEXT: fstps (%esp)
200207; CHECK-NEXT: wait
201- ; CHECK-NEXT: calll _asinf
202- ; CHECK-NEXT: popl %eax
208+ ; CHECK-NEXT: addl $12, %esp
203209; CHECK-NEXT: retl
204210 %result = call float @llvm.experimental.constrained.asin.f32 (float %x , metadata !"round.dynamic" , metadata !"fpexcept.strict" ) #0
205211 ret float %result
@@ -208,12 +214,15 @@ define float @asin(float %x) #0 {
208214define float @atan (float %x ) #0 {
209215; CHECK-LABEL: atan:
210216; CHECK: # %bb.0:
211- ; CHECK-NEXT: pushl %eax
217+ ; CHECK-NEXT: subl $12, %esp
212218; CHECK-NEXT: flds {{[0-9]+}}(%esp)
213- ; CHECK-NEXT: fstps (%esp)
219+ ; CHECK-NEXT: fstpl (%esp)
214220; CHECK-NEXT: wait
215- ; CHECK-NEXT: calll _atanf
216- ; CHECK-NEXT: popl %eax
221+ ; CHECK-NEXT: calll _atan
222+ ; CHECK-NEXT: fstps {{[0-9]+}}(%esp)
223+ ; CHECK-NEXT: flds {{[0-9]+}}(%esp)
224+ ; CHECK-NEXT: wait
225+ ; CHECK-NEXT: addl $12, %esp
217226; CHECK-NEXT: retl
218227 %result = call float @llvm.experimental.constrained.atan.f32 (float %x , metadata !"round.dynamic" , metadata !"fpexcept.strict" ) #0
219228 ret float %result
@@ -222,12 +231,15 @@ define float @atan(float %x) #0 {
222231define float @cosh (float %x ) #0 {
223232; CHECK-LABEL: cosh:
224233; CHECK: # %bb.0:
225- ; CHECK-NEXT: pushl %eax
234+ ; CHECK-NEXT: subl $12, %esp
235+ ; CHECK-NEXT: flds {{[0-9]+}}(%esp)
236+ ; CHECK-NEXT: fstpl (%esp)
237+ ; CHECK-NEXT: wait
238+ ; CHECK-NEXT: calll _cosh
239+ ; CHECK-NEXT: fstps {{[0-9]+}}(%esp)
226240; CHECK-NEXT: flds {{[0-9]+}}(%esp)
227- ; CHECK-NEXT: fstps (%esp)
228241; CHECK-NEXT: wait
229- ; CHECK-NEXT: calll _coshf
230- ; CHECK-NEXT: popl %eax
242+ ; CHECK-NEXT: addl $12, %esp
231243; CHECK-NEXT: retl
232244 %result = call float @llvm.experimental.constrained.cosh.f32 (float %x , metadata !"round.dynamic" , metadata !"fpexcept.strict" ) #0
233245 ret float %result
@@ -236,26 +248,31 @@ define float @cosh(float %x) #0 {
236248define float @sinh (float %x ) #0 {
237249; CHECK-LABEL: sinh:
238250; CHECK: # %bb.0:
239- ; CHECK-NEXT: pushl %eax
251+ ; CHECK-NEXT: subl $12, %esp
252+ ; CHECK-NEXT: flds {{[0-9]+}}(%esp)
253+ ; CHECK-NEXT: fstpl (%esp)
254+ ; CHECK-NEXT: wait
255+ ; CHECK-NEXT: calll _sinh
256+ ; CHECK-NEXT: fstps {{[0-9]+}}(%esp)
240257; CHECK-NEXT: flds {{[0-9]+}}(%esp)
241- ; CHECK-NEXT: fstps (%esp)
242258; CHECK-NEXT: wait
243- ; CHECK-NEXT: calll _sinhf
244- ; CHECK-NEXT: popl %eax
259+ ; CHECK-NEXT: addl $12, %esp
245260; CHECK-NEXT: retl
246261 %result = call float @llvm.experimental.constrained.sinh.f32 (float %x , metadata !"round.dynamic" , metadata !"fpexcept.strict" ) #0
247262 ret float %result
248263}
249264
250265define float @tanh (float %x ) #0 {
251- ; CHECK-LABEL: tanh:
252266; CHECK: # %bb.0:
253- ; CHECK-NEXT: pushl %eax
267+ ; CHECK-NEXT: subl $12, %esp
254268; CHECK-NEXT: flds {{[0-9]+}}(%esp)
255- ; CHECK-NEXT: fstps (%esp)
269+ ; CHECK-NEXT: fstpl (%esp)
256270; CHECK-NEXT: wait
257- ; CHECK-NEXT: calll _tanhf
258- ; CHECK-NEXT: popl %eax
271+ ; CHECK-NEXT: calll _tanh
272+ ; CHECK-NEXT: fstps {{[0-9]+}}(%esp)
273+ ; CHECK-NEXT: flds {{[0-9]+}}(%esp)
274+ ; CHECK-NEXT: wait
275+ ; CHECK-NEXT: addl $12, %esp
259276; CHECK-NEXT: retl
260277 %result = call float @llvm.experimental.constrained.tanh.f32 (float %x , metadata !"round.dynamic" , metadata !"fpexcept.strict" ) #0
261278 ret float %result
0 commit comments