1 ; RUN: opt -S -instcombine %s | FileCheck %s
3 define float @test1(float %x) nounwind readnone ssp {
10 %conv = fpext float %x to double ; <double> [#uses=1]
11 %call = tail call double @sqrt(double %conv) readnone nounwind ; <double> [#uses=1]
12 %conv1 = fptrunc double %call to float ; <float> [#uses=1]
17 declare double @sqrt(double)
20 define float @test2(float %x) nounwind readnone ssp {
27 %conv = fpext float %x to double ; <double> [#uses=1]
28 %call = tail call double @sqrt(double %conv) nounwind ; <double> [#uses=1]
29 %conv1 = fptrunc double %call to float ; <float> [#uses=1]