Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!flame.oracle.com!wbailey From: wbailey@flame.oracle.com (Bill Bailey) Newsgroups: gnu.gcc.bug Subject: bug in addhi3 and addsi3 in vax.md, gcc 1.36 Message-ID: <9002050306.AA15661@flame.oracle.com> Date: 5 Feb 90 03:06:29 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 46 The bug prevents gcc from using the decw and decb instructions. Here is a context diff of the fix. thx wbailey@oracle.com *** vax.md Wed Sep 6 00:44:59 1989 --- ../../gcc-1.36/config/vax.md Sun Feb 4 18:25:04 1990 *************** *** 529,536 **** { if (operands[2] == const1_rtx) return \"incw %0\"; ! if (GET_CODE (operands[1]) == CONST_INT ! && INTVAL (operands[1]) == -1) return \"decw %0\"; if (GET_CODE (operands[2]) == CONST_INT && (unsigned) (- INTVAL (operands[2])) < 64) --- 529,536 ---- { if (operands[2] == const1_rtx) return \"incw %0\"; ! if (GET_CODE (operands[2]) == CONST_INT ! && INTVAL (operands[2]) == -1) return \"decw %0\"; if (GET_CODE (operands[2]) == CONST_INT && (unsigned) (- INTVAL (operands[2])) < 64) *************** *** 556,563 **** { if (operands[2] == const1_rtx) return \"incb %0\"; ! if (GET_CODE (operands[1]) == CONST_INT ! && INTVAL (operands[1]) == -1) return \"decb %0\"; if (GET_CODE (operands[2]) == CONST_INT && (unsigned) (- INTVAL (operands[2])) < 64) --- 556,563 ---- { if (operands[2] == const1_rtx) return \"incb %0\"; ! if (GET_CODE (operands[2]) == CONST_INT ! && INTVAL (operands[2]) == -1) return \"decb %0\"; if (GET_CODE (operands[2]) == CONST_INT && (unsigned) (- INTVAL (operands[2])) < 64)