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]

Re: [patch] simplify-rtx.c: Fix rtl-optimization/27671.


Hi Andrew,

+/* { dg-do run { target i?86-*-* } } */
+/* { dg-require-effective-target ilp32 } */
+/* { dg-options "-O1 -march=pentium4" } */


I think this should not just go into i386's testsuite
but instead go into gcc.dg as
/* { dg-options "-O1" } */
/* { dg-options "-O1 -march=pentium4" { target { { i?86-*-* x86_64-*- * } && ilp32 } } } */

When I use x86_64-pc-linux-gnu with -march=pentium4, I get:


pr27671-2.c:1: error: CPU you selected does not support x86-64 instruction set

Does specifying "ilp32" magically take care of this error?

Kazu Hirata


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