[llvm] r339141 - [InstSimplify] move misplaced minnum/maxnum tests; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 7 07:12:08 PDT 2018
Author: spatel
Date: Tue Aug 7 07:12:08 2018
New Revision: 339141
URL: http://llvm.org/viewvc/llvm-project?rev=339141&view=rev
Log:
[InstSimplify] move misplaced minnum/maxnum tests; NFC
Modified:
llvm/trunk/test/Transforms/InstCombine/maxnum.ll
llvm/trunk/test/Transforms/InstCombine/minnum.ll
llvm/trunk/test/Transforms/InstSimplify/floating-point-arithmetic.ll
Modified: llvm/trunk/test/Transforms/InstCombine/maxnum.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/maxnum.ll?rev=339141&r1=339140&r2=339141&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/maxnum.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/maxnum.ll Tue Aug 7 07:12:08 2018
@@ -145,14 +145,6 @@ define float @maxnum_f32_val_nan(float %
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:%.*]])
Modified: llvm/trunk/test/Transforms/InstCombine/minnum.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/minnum.ll?rev=339141&r1=339140&r2=339141&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/minnum.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/minnum.ll Tue Aug 7 07:12:08 2018
@@ -147,14 +147,6 @@ define float @minnum_f32_val_nan(float %
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:%.*]])
Modified: llvm/trunk/test/Transforms/InstSimplify/floating-point-arithmetic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstSimplify/floating-point-arithmetic.ll?rev=339141&r1=339140&r2=339141&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstSimplify/floating-point-arithmetic.ll (original)
+++ llvm/trunk/test/Transforms/InstSimplify/floating-point-arithmetic.ll Tue Aug 7 07:12:08 2018
@@ -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:%.*]]
More information about the llvm-commits
mailing list