From ee74fe91b0a4ddc3b10c1d930e840ae39230163c Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Tue, 7 Aug 2018 14:12:08 +0000 Subject: [PATCH] [InstSimplify] move misplaced minnum/maxnum tests; NFC llvm-svn: 339141 --- test/Transforms/InstCombine/maxnum.ll | 8 -------- test/Transforms/InstCombine/minnum.ll | 8 -------- .../InstSimplify/floating-point-arithmetic.ll | 16 ++++++++++++++++ 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/test/Transforms/InstCombine/maxnum.ll b/test/Transforms/InstCombine/maxnum.ll index c929c782542..9cb4ad67aa6 100644 --- a/test/Transforms/InstCombine/maxnum.ll +++ b/test/Transforms/InstCombine/maxnum.ll @@ -145,14 +145,6 @@ define float @maxnum_f32_val_nan(float %x) { ret float %y } -define float @fold_maxnum_f32_undef_undef(float %x) { -; CHECK-LABEL: @fold_maxnum_f32_undef_undef( -; CHECK-NEXT: ret float undef -; - %val = call float @llvm.maxnum.f32(float undef, float undef) - ret float %val -} - define float @maxnum_x_maxnum_x_y(float %x, float %y) { ; CHECK-LABEL: @maxnum_x_maxnum_x_y( ; CHECK-NEXT: [[A:%.*]] = call float @llvm.maxnum.f32(float [[X:%.*]], float [[Y:%.*]]) diff --git a/test/Transforms/InstCombine/minnum.ll b/test/Transforms/InstCombine/minnum.ll index 7e98eba26c4..48e8ea89c6f 100644 --- a/test/Transforms/InstCombine/minnum.ll +++ b/test/Transforms/InstCombine/minnum.ll @@ -147,14 +147,6 @@ define float @minnum_f32_val_nan(float %x) { ret float %y } -define float @fold_minnum_f32_undef_undef(float %x) { -; CHECK-LABEL: @fold_minnum_f32_undef_undef( -; CHECK-NEXT: ret float undef -; - %val = call float @llvm.minnum.f32(float undef, float undef) - ret float %val -} - define float @minnum_x_minnum_x_y(float %x, float %y) { ; CHECK-LABEL: @minnum_x_minnum_x_y( ; CHECK-NEXT: [[A:%.*]] = call float @llvm.minnum.f32(float [[X:%.*]], float [[Y:%.*]]) diff --git a/test/Transforms/InstSimplify/floating-point-arithmetic.ll b/test/Transforms/InstSimplify/floating-point-arithmetic.ll index 1acff6f5f98..bf9afb4615e 100644 --- a/test/Transforms/InstSimplify/floating-point-arithmetic.ll +++ b/test/Transforms/InstSimplify/floating-point-arithmetic.ll @@ -569,6 +569,22 @@ define float @minnum_undef_op0(float %x) { ret float %val } +define float @minnum_undef_undef(float %x) { +; CHECK-LABEL: @minnum_undef_undef( +; CHECK-NEXT: ret float undef +; + %val = call float @llvm.minnum.f32(float undef, float undef) + ret float %val +} + +define float @maxnum_undef_undef(float %x) { +; CHECK-LABEL: @maxnum_undef_undef( +; CHECK-NEXT: ret float undef +; + %val = call float @llvm.maxnum.f32(float undef, float undef) + ret float %val +} + define float @minnum_same_args(float %x) { ; CHECK-LABEL: @minnum_same_args( ; CHECK-NEXT: ret float [[X:%.*]]