brintos

brintos / llvm-project-archived public Read only

0
0
Text · 673 B · 007da12 Raw
24 lines · plain
1; RUN: opt -passes=instcombine -S -o - < %s | FileCheck %s2declare <4 x float> @llvm.fabs.v4f32(<4 x float>)3 4define <4 x i1> @test1(<4 x float> %V) {5entry:6  %abs = call <4 x float> @llvm.fabs.v4f32(<4 x float> %V)7  %cmp = fcmp olt <4 x float> %abs, zeroinitializer8  ret <4 x i1> %cmp9}10; CHECK-LABEL: define <4 x i1> @test1(11; CHECK:   ret <4 x i1> zeroinitializer12 13declare float @fabsf()14 15define i1 @test2() {16  %call = call float @fabsf()17  %cmp = fcmp olt float %call, 0.000000e+0018  ret i1 %cmp19}20; CHECK-LABEL: define i1 @test2(21; CHECK:  %[[call:.*]] = call float @fabsf()22; CHECK:  %[[cmp:.*]] = fcmp olt float %[[call]], 0.000000e+0023; CHECK:  ret i1 %[[cmp]]24