From: David Edelsohn Date: Tue, 22 May 2001 10:19:15 +0000 (+0000) Subject: Fix a miscompilation on rs6000 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4978ba2f14d1077312b63befe11f12b244ba0010;p=thirdparty%2Fgcc.git Fix a miscompilation on rs6000 From-SVN: r42437 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d77d48ae5cfb..b47f55d7a480 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-05-22 David Edelsohn + + * rs6000.md (movsfcc,movdfcc): Remove NE case. + 2001-05-17 Bernd Schmidt * function.c: Small formatting change to prevent compilation errors diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 343171de739c..1238db212713 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -3759,7 +3759,7 @@ FAIL; switch (code) { - case GE: case EQ: case NE: + case GE: case EQ: op0 = rs6000_compare_op0; op1 = rs6000_compare_op1; break; @@ -3790,11 +3790,6 @@ emit_insn (gen_negdf2 (temp, temp)); emit_insn (gen_fseldfsf4 (operands[0], temp, operands[0], operands[3])); } - else if (code == NE) - { - emit_insn (gen_negdf2 (temp, temp)); - emit_insn (gen_fseldfsf4 (operands[0], temp, operands[3], operands[0])); - } } else { @@ -3806,11 +3801,6 @@ emit_insn (gen_negsf2 (temp, temp)); emit_insn (gen_fselsfsf4 (operands[0], temp, operands[0], operands[3])); } - else if (code == NE) - { - emit_insn (gen_negsf2 (temp, temp)); - emit_insn (gen_fselsfsf4 (operands[0], temp, operands[3], operands[0])); - } } DONE; }") @@ -4006,7 +3996,7 @@ FAIL; switch (code) { - case GE: case EQ: case NE: + case GE: case EQ: op0 = rs6000_compare_op0; op1 = rs6000_compare_op1; break; @@ -4037,11 +4027,6 @@ emit_insn (gen_negdf2 (temp, temp)); emit_insn (gen_fseldfdf4 (operands[0], temp, operands[0], operands[3])); } - else if (code == NE) - { - emit_insn (gen_negdf2 (temp, temp)); - emit_insn (gen_fseldfdf4 (operands[0], temp, operands[3], operands[0])); - } } else { @@ -4053,11 +4038,6 @@ emit_insn (gen_negsf2 (temp, temp)); emit_insn (gen_fselsfdf4 (operands[0], temp, operands[0], operands[3])); } - else if (code == NE) - { - emit_insn (gen_negsf2 (temp, temp)); - emit_insn (gen_fselsfdf4 (operands[0], temp, operands[3], operands[0])); - } } DONE; }")