Patchwork [testsuite] : Fix gcc.target/i386/opt-[12].c on AVX target

login
register
mail settings
Submitter Uros Bizjak
Date May 5, 2011, 12:15 p.m.
Message ID <BANLkTimKR=vzTjiZPp5BYgVKsfLKafDQdA@mail.gmail.com>
Download mbox | patch
Permalink /patch/94255/
State New
Headers show

Comments

Uros Bizjak - May 5, 2011, 12:15 p.m.
Hello!

Add --param min-insn-to-prefetch-ratio=0 to avoid "Not prefetching --
instruction to prefetch ratio (6) too small" aprefetch pass rejection.

2011-05-05  Uros Bizjak  <ubizjak@gmail.com>

	* gcc.target/i386/opt-1.c: Add --param min-insn-to-prefetch -ratio=0
	to dg-options.
	* gcc.target/i386/opt-1.c: Ditto.

Tested on x86_64-pc-linux-gnu {,-m32} AVX target, committed to mainline SVN.

Uros.

Patch

Index: gcc.target/i386/opt-2.c
===================================================================
--- gcc.target/i386/opt-2.c	(revision 173416)
+++ gcc.target/i386/opt-2.c	(working copy)
@@ -1,7 +1,7 @@ 
 /* Test the attribute((optimize)) really works.  Do this test by checking
    whether we vectorize a simple loop.  */
 /* { dg-do compile } */
-/* { dg-options "-O1 -msse2 -mfpmath=sse -march=k8" } */
+/* { dg-options "-O1 -msse2 -mfpmath=sse -march=k8 --param min-insn-to-prefetch-ratio=0" } */
 /* { dg-final { scan-assembler "prefetcht0" } } */
 /* { dg-final { scan-assembler "addps" } } */
 /* { dg-final { scan-assembler "subss" } } */
Index: gcc.target/i386/opt-1.c
===================================================================
--- gcc.target/i386/opt-1.c	(revision 173416)
+++ gcc.target/i386/opt-1.c	(working copy)
@@ -1,7 +1,7 @@ 
 /* Test the attribute((optimize)) really works.  Do this test by checking
    whether we vectorize a simple loop.  */
 /* { dg-do compile } */
-/* { dg-options "-O1 -msse2 -mfpmath=sse -march=k8" } */
+/* { dg-options "-O1 -msse2 -mfpmath=sse -march=k8 --param min-insn-to-prefetch-ratio=0" } */
 /* { dg-final { scan-assembler "prefetcht0" } } */
 /* { dg-final { scan-assembler "addps" } } */
 /* { dg-final { scan-assembler "subss" } } */