1 ; RUN: opt -passes=instcombine -S -o - < %s | FileCheck %s
2 declare <4 x float> @llvm.fabs.v4f32(<4 x float>)
4 define <4 x i1> @test1(<4 x float> %V) {
6 %abs = call <4 x float> @llvm.fabs.v4f32(<4 x float> %V)
7 %cmp = fcmp olt <4 x float> %abs, zeroinitializer
10 ; CHECK-LABEL: define <4 x i1> @test1(
11 ; CHECK: ret <4 x i1> zeroinitializer
13 declare float @fabsf()
16 %call = call float @fabsf()
17 %cmp = fcmp olt float %call, 0.000000e+00
20 ; CHECK-LABEL: define i1 @test2(
21 ; CHECK: %[[call:.*]] = call float @fabsf()
22 ; CHECK: %[[cmp:.*]] = fcmp olt float %[[call]], 0.000000e+00
23 ; CHECK: ret i1 %[[cmp]]