From 2bbc163fd3252347d205212c6393e3d74e4af820 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Mon, 27 Dec 1993 12:02:09 -0500 Subject: [PATCH] (maxsf3, minsf3): Correct numerous errors. From-SVN: r6338 --- gcc/config/alpha/alpha.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/gcc/config/alpha/alpha.md b/gcc/config/alpha/alpha.md index 73ab0c69246..94db72fbb92 100644 --- a/gcc/config/alpha/alpha.md +++ b/gcc/config/alpha/alpha.md @@ -1696,26 +1696,28 @@ (define_expand "maxsf3" [(set (match_dup 3) - (le:DF (match_operand:SF 1 "reg_or_fp0_operand" "") + (le:DF (float_extend:DF (match_operand:SF 1 "reg_or_fp0_operand" "")) (float_extend:DF (match_operand:SF 2 "reg_or_fp0_operand" "")))) (set (match_operand:SF 0 "register_operand" "") - (if_then_else:SF (eq (match_dup 3) (const_int 0)) + (if_then_else:SF (eq (match_dup 3) (match_dup 4)) (match_dup 1) (match_dup 2)))] "TARGET_FP" " -{ operands[3] = gen_reg_rtx (SFmode); +{ operands[3] = gen_reg_rtx (DFmode); + operands[4] = CONST0_RTX (DFmode); }") (define_expand "minsf3" [(set (match_dup 3) - (lt:DF (match_operand:SF 1 "reg_or_fp0_operand" "") + (lt:DF (float_extend:DF (match_operand:SF 1 "reg_or_fp0_operand" "")) (float_extend:DF (match_operand:SF 2 "reg_or_fp0_operand" "")))) (set (match_operand:SF 0 "register_operand" "") (if_then_else:SF (ne (match_dup 3) (const_int 0)) (match_dup 1) (match_dup 2)))] "TARGET_FP" " -{ operands[3] = gen_reg_rtx (SFmode); +{ operands[3] = gen_reg_rtx (DFmode); + operands[4] = CONST0_RTX (DFmode); }") (define_insn "" -- 2.30.2