This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PR target/10984


Tue Aug 19 15:50:16 CEST 2003  Jan Hubicka  <jh@suse.cz>
	PR target/10984
	* i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
Index: i386.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.c,v
retrieving revision 1.593
diff -c -3 -p -r1.593 i386.c
*** i386.c	16 Aug 2003 11:04:59 -0000	1.593
--- i386.c	19 Aug 2003 13:49:59 -0000
*************** ix86_expand_binop_builtin (enum insn_cod
*** 13505,13511 ****
  
    /* In case the insn wants input operands in modes different from
       the result, abort.  */
!   if (GET_MODE (op0) != mode0 || GET_MODE (op1) != mode1)
      abort ();
  
    if (! (*insn_data[icode].operand[1].predicate) (op0, mode0))
--- 13531,13538 ----
  
    /* In case the insn wants input operands in modes different from
       the result, abort.  */
!   if ((GET_MODE (op0) != mode0 && GET_MODE (op0) != VOIDmode)
!       || (GET_MODE (op1) != mode1 && GET_MODE (op1) != VOIDmode))
      abort ();
  
    if (! (*insn_data[icode].operand[1].predicate) (op0, mode0))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]