PATCH: gcc.target/i386/ifcvt-onecmpl-abs-1.c
Loren James Rittle
rittle@latour.labs.mot.com
Thu Oct 1 22:51:00 GMT 2009
Regarding:
r152253 | ian | 2009-09-28 16:26:31 -0500 (Mon, 28 Sep 2009) | 9 lines
It appears that a target actually configured as i386-*-* (rather than
the common i686-*-*) fails the gcc.target/i386/ifcvt-onecmpl-abs-1.c
test (perhaps due to cost calculation but I didn't look closely).
Adding: -march=i586 or -march=i686 seems to get the desired result but
perhaps there is a better flag to add.
Regards,
Loren
* gcc.target/i386/ifcvt-onecmpl-abs-1.c: Specify -march=i586.
Index: gcc/testsuite/gcc.target/i386/ifcvt-onecmpl-abs-1.c
===================================================================
--- gcc/testsuite/gcc.target/i386/ifcvt-onecmpl-abs-1.c (revision 152346)
+++ gcc/testsuite/gcc.target/i386/ifcvt-onecmpl-abs-1.c (working copy)
@@ -1,7 +1,7 @@
/* { dg-do compile } */
/* This test checks for if-conversion of one's complement
* abs function. */
-/* { dg-options "-O" } */
+/* { dg-options "-O -march=i586" } */
/* { dg-final { scan-assembler "sar" } } */
/* { dg-final { scan-assembler "xor" } } */
More information about the Gcc-patches
mailing list