Hello! It turned out that with gcc.target/i386/pr49095.c, the default -fshrink-wrap setting interferes with short testcases that test various read-modify-write peephole patterns.
Use -fno-shrink-wrap to keep correct RTL sequences that test the transformation. 2017-02-14 Uros Bizjak <ubiz...@gmail.com> PR middle-end/61225 * gcc.target/i386/pr49095.c: Add -fno-shrink-wrap to dg-options. Use dg-additional-options for ia32 target. Remove XFAIL. Tested on x86_64-linux-gnu {,-m32}. Committed to mainline SVN, will be backported to gcc-6 branch. Uros.
Index: gcc.target/i386/pr49095.c =================================================================== --- gcc.target/i386/pr49095.c (revision 245433) +++ gcc.target/i386/pr49095.c (working copy) @@ -1,7 +1,7 @@ /* PR rtl-optimization/49095 */ /* { dg-do compile } */ -/* { dg-options "-Os" } */ -/* { dg-options "-Os -mregparm=2" { target ia32 } } */ +/* { dg-options "-Os -fno-shrink-wrap" } */ +/* { dg-additional-options "-mregparm=2" { target ia32 } } */ void foo (void *); @@ -70,5 +70,4 @@ G (int) G (long) -/* See PR61225 for the XFAIL. */ -/* { dg-final { scan-assembler-not "test\[lq\]" { xfail { ia32 } } } } */ +/* { dg-final { scan-assembler-not "test\[lq\]" } } */