diff options
Diffstat (limited to 'llvm/test/Transforms/InstCombine/fpcast.ll')
-rw-r--r-- | llvm/test/Transforms/InstCombine/fpcast.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Transforms/InstCombine/fpcast.ll b/llvm/test/Transforms/InstCombine/fpcast.ll index 59fafac9325..4cada061a8f 100644 --- a/llvm/test/Transforms/InstCombine/fpcast.ll +++ b/llvm/test/Transforms/InstCombine/fpcast.ll @@ -54,8 +54,8 @@ define half @test4-fast(float %a) { define half @test5(float %a, float %b, float %c) { ; CHECK-LABEL: @test5( ; CHECK-NEXT: [[D:%.*]] = fcmp ogt float [[A:%.*]], [[B:%.*]] -; CHECK-NEXT: [[TMP1:%.*]] = fptrunc float [[C:%.*]] to half -; CHECK-NEXT: [[F:%.*]] = select i1 [[D]], half [[TMP1]], half 0xH3C00 +; CHECK-NEXT: [[E:%.*]] = select i1 [[D]], float [[C:%.*]], float 1.000000e+00 +; CHECK-NEXT: [[F:%.*]] = fptrunc float [[E]] to half ; CHECK-NEXT: ret half [[F]] ; %d = fcmp ogt float %a, %b |