]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix a miscompilation on rs6000
authorDavid Edelsohn <dje@watson.ibm.com>
Tue, 22 May 2001 10:19:15 +0000 (10:19 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Tue, 22 May 2001 10:19:15 +0000 (10:19 +0000)
From-SVN: r42437

gcc/ChangeLog
gcc/config/rs6000/rs6000.md

index d77d48ae5cfb49dfc22b8ba01457435a04835036..b47f55d7a480ce05a0cdff032855efe487e59d08 100644 (file)
@@ -1,3 +1,7 @@
+2001-05-22  David Edelsohn  <dje@watson.ibm.com>
+
+       * rs6000.md (movsfcc,movdfcc): Remove NE case.
+
 2001-05-17  Bernd Schmidt  <bernds@redhat.com>
 
        * function.c: Small formatting change to prevent compilation errors
index 343171de739c16a0eec78af6139a35a529d3c4ca..1238db212713106ea918fa0598f8ce5a85fa92be 100644 (file)
     FAIL;
   switch (code)
     {
-    case GE: case EQ: case NE:
+    case GE: case EQ:
       op0 = rs6000_compare_op0;
       op1 = rs6000_compare_op1;
       break;
          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
     {
          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;
 }")
     FAIL;
   switch (code)
     {
-    case GE: case EQ: case NE:
+    case GE: case EQ:
       op0 = rs6000_compare_op0;
       op1 = rs6000_compare_op1;
       break;
          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
     {
          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;
 }")