From patchwork Thu May 5 12:15:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 94255 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 0637EB6FCE for ; Thu, 5 May 2011 22:15:29 +1000 (EST) Received: (qmail 25746 invoked by alias); 5 May 2011 12:15:26 -0000 Received: (qmail 25729 invoked by uid 22791); 5 May 2011 12:15:24 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RFC_ABUSE_POST, TW_ZJ, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-pw0-f47.google.com (HELO mail-pw0-f47.google.com) (209.85.160.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 05 May 2011 12:15:10 +0000 Received: by pwj9 with SMTP id 9so1112090pwj.20 for ; Thu, 05 May 2011 05:15:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.19.5 with SMTP id w5mr1286507wfi.40.1304597709081; Thu, 05 May 2011 05:15:09 -0700 (PDT) Received: by 10.143.158.12 with HTTP; Thu, 5 May 2011 05:15:09 -0700 (PDT) Date: Thu, 5 May 2011 14:15:09 +0200 Message-ID: Subject: [PATCH, testsuite]: Fix gcc.target/i386/opt-[12].c on AVX target From: Uros Bizjak To: gcc-patches@gcc.gnu.org Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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 * 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. 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" } } */