[llvm] [ConstantFolding] Fold maximumnum and minimumnum (PR #138700)
Lewis Crawford via llvm-commits
llvm-commits at lists.llvm.org
Thu May 8 07:03:17 PDT 2025
================
@@ -538,6 +540,38 @@ define <2 x double> @frem_undef_op0_constant_vec(<2 x double> %x) {
ret <2 x double> %r
}
+define <2 x double> @maximumnum_nan_op0_vec_partial_undef_op1_undef(<2 x double> %x) {
+; CHECK-LABEL: @maximumnum_nan_op0_vec_partial_undef_op1_undef(
+; CHECK-NEXT: ret <2 x double> <double 0x7FF8000000000000, double undef>
+;
+ %r = call <2 x double> @llvm.maximumnum.v2f64(<2 x double> <double 0x7ff8000000000000, double undef>, <2 x double> undef)
----------------
LewisCrawford wrote:
Done.
https://github.com/llvm/llvm-project/pull/138700
More information about the llvm-commits
mailing list