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]

fix some amd64 compat cases


Fixes

-FAIL: gcc.dg/compat/scalar-by-value-4 c_compat_x_tst.o compile
-FAIL: gcc.dg/compat/scalar-by-value-4 c_compat_y_tst.o compile
-FAIL: gcc.dg/compat/scalar-return-4 c_compat_x_tst.o compile
-FAIL: gcc.dg/compat/scalar-return-4 c_compat_y_tst.o compile
-FAIL: gcc.dg/compat/struct-by-value-11 c_compat_x_tst.o compile
-FAIL: gcc.dg/compat/struct-by-value-11 c_compat_y_tst.o compile

This is due to %rsi being used as a parameter register, and failing
to reject the %ah analog for registers that don't have them.


r~


	* config/i386/i386.md (extv, extzv, insv): Revalidate the 
	operand with ext_register_operand.

Index: i386.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.md,v
retrieving revision 1.581
diff -c -p -d -u -r1.581 i386.md
--- i386.md	16 Dec 2004 09:42:46 -0000	1.581
+++ i386.md	16 Dec 2004 23:15:59 -0000
@@ -12195,7 +12195,7 @@
 
   /* From mips.md: extract_bit_field doesn't verify that our source
      matches the predicate, so check it again here.  */
-  if (! register_operand (operands[1], VOIDmode))
+  if (! ext_register_operand (operands[1], VOIDmode))
     FAIL;
 })
 
@@ -12212,7 +12212,7 @@
 
   /* From mips.md: extract_bit_field doesn't verify that our source
      matches the predicate, so check it again here.  */
-  if (! register_operand (operands[1], VOIDmode))
+  if (! ext_register_operand (operands[1], VOIDmode))
     FAIL;
 })
 
@@ -12229,7 +12229,7 @@
 
   /* From mips.md: insert_bit_field doesn't verify that our source
      matches the predicate, so check it again here.  */
-  if (! register_operand (operands[0], VOIDmode))
+  if (! ext_register_operand (operands[0], VOIDmode))
     FAIL;
 
   if (TARGET_64BIT)


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