This is the mail archive of the 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]

[PATCH, i386]: Use INTEGER_CLASS_P macro in ix86_spill_class


The patch replaces open-coded INTEGER_CLASS_P macro with its
definition from i386.h

2013-02-08  Uros Bizjak  <>

	* config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.

Bootstrapped and regression tested on x86_64-pc-linux-gnu {,-m32},
with additional configure flags "--with-arch=corei7

Committed as obvious to mainline SVN.

Index: config/i386/i386.c
--- config/i386/i386.c  (revision 195880)
+++ config/i386/i386.c  (working copy)
@@ -42083,9 +42083,8 @@
 ix86_spill_class (reg_class_t rclass, enum machine_mode mode)
-      && hard_reg_set_subset_p (reg_class_contents[rclass],
-                               reg_class_contents[GENERAL_REGS])
-      && (mode == SImode || (TARGET_64BIT && mode == DImode)))
+      && (mode == SImode || (TARGET_64BIT && mode == DImode))
+      && INTEGER_CLASS_P (rclass))
     return SSE_REGS;
   return NO_REGS;

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