1 ; RUN: llc -march=arm64 -enable-no-nans-fp-math < %s | FileCheck %s
3 define double @test_direct(float %in) #1 {
5 %cmp = fcmp olt float %in, 0.000000e+00
6 %longer = fpext float %in to double
7 %val = select i1 %cmp, double 0.000000e+00, double %longer
13 define double @test_cross(float %in) #1 {
15 %cmp = fcmp olt float %in, 0.000000e+00
16 %longer = fpext float %in to double
17 %val = select i1 %cmp, double %longer, double 0.000000e+00