From patchwork Thu Oct 14 13:07:30 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 67821 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 8FDC11007D3 for ; Fri, 15 Oct 2010 00:07:42 +1100 (EST) Received: (qmail 3752 invoked by alias); 14 Oct 2010 13:07:39 -0000 Received: (qmail 3738 invoked by uid 22791); 14 Oct 2010 13:07:38 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL, BAYES_00, NO_DNS_FOR_FROM, TW_AV, TW_IV, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mga01.intel.com (HELO mga01.intel.com) (192.55.52.88) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 14 Oct 2010 13:07:32 +0000 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 14 Oct 2010 06:07:31 -0700 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([10.3.194.135]) by fmsmga002.fm.intel.com with ESMTP; 14 Oct 2010 06:07:31 -0700 Received: by gnu-6.sc.intel.com (Postfix, from userid 500) id 01FCE204FD; Thu, 14 Oct 2010 06:07:30 -0700 (PDT) Date: Thu, 14 Oct 2010 06:07:30 -0700 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Subject: PATH: Add -mtune=generic to 256bit AVX tests Message-ID: <20101014130730.GA23022@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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 Hi, I checked in this patch to add -mtune=generic to 256bit AVX tests. Otherwise, we get a failure when gcc is configured --with-cpu=atom since -mtune=atom will turn off double vectorizer. H.J. Index: gcc.target/i386/recip-vec-divf-avx.c =================================================================== --- gcc.target/i386/recip-vec-divf-avx.c (revision 165465) +++ gcc.target/i386/recip-vec-divf-avx.c (working copy) @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx -mfpmath=sse -mrecip" } */ +/* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx -mtune=generic -mfpmath=sse -mrecip" } */ float a[16]; float b[16]; Index: gcc.target/i386/avx-copysignf-vec.c =================================================================== --- gcc.target/i386/avx-copysignf-vec.c (revision 165465) +++ gcc.target/i386/avx-copysignf-vec.c (working copy) @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target avx } */ -/* { dg-options "-O2 -ftree-vectorize -mavx" } */ +/* { dg-options "-O2 -ftree-vectorize -mavx -mtune=generic" } */ #include "avx-check.h" Index: gcc.target/i386/vectorize4-avx.c =================================================================== --- gcc.target/i386/vectorize4-avx.c (revision 165465) +++ gcc.target/i386/vectorize4-avx.c (working copy) @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx" } */ +/* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx -mtune=generic" } */ extern double sqrt (double __x); Index: gcc.target/i386/pr44144.c =================================================================== --- gcc.target/i386/pr44144.c (revision 165465) +++ gcc.target/i386/pr44144.c (working copy) @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -ftree-vectorize -mavx" } */ +/* { dg-options "-O2 -ftree-vectorize -mavx -mtune=generic" } */ void foo (char * dest, int xcount, int ycount) Index: gcc.target/i386/pr44180.c =================================================================== --- gcc.target/i386/pr44180.c (revision 165465) +++ gcc.target/i386/pr44180.c (working copy) @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target avx } */ -/* { dg-options "-O2 -ftree-vectorize -mavx" } */ +/* { dg-options "-O2 -ftree-vectorize -mavx -mtune=generic" } */ #include "avx-check.h" Index: gcc.target/i386/vect-sizes-1.c =================================================================== --- gcc.target/i386/vect-sizes-1.c (revision 165465) +++ gcc.target/i386/vect-sizes-1.c (working copy) @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O3 -ffast-math -mavx" } */ +/* { dg-options "-O3 -ffast-math -mavx -mtune=generic" } */ double a[1024]; Index: gcc.target/i386/pr44130.c =================================================================== --- gcc.target/i386/pr44130.c (revision 165465) +++ gcc.target/i386/pr44130.c (working copy) @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -ftree-vectorize -mavx" } */ +/* { dg-options "-O2 -ftree-vectorize -mavx -mtune=generic" } */ /* { dg-final { scan-assembler "and\[lq\]?\[\\t \]*\\$-32,\[\\t \]*%\[re\]?sp" } } */ /* { dg-final { scan-assembler "vmovaps\[\\t \]*%ymm" } } */ Index: gcc.target/i386/recip-vec-sqrtf-avx.c =================================================================== --- gcc.target/i386/recip-vec-sqrtf-avx.c (revision 165465) +++ gcc.target/i386/recip-vec-sqrtf-avx.c (working copy) @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx -mfpmath=sse -mrecip" } */ +/* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx -mtune=generic -mfpmath=sse -mrecip" } */ float a[16]; float b[16]; Index: gcc.target/i386/avx-copysign-vec.c =================================================================== --- gcc.target/i386/avx-copysign-vec.c (revision 165465) +++ gcc.target/i386/avx-copysign-vec.c (working copy) @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target avx } */ -/* { dg-options "-O2 -ftree-vectorize -mavx" } */ +/* { dg-options "-O2 -ftree-vectorize -mavx -mtune=generic" } */ #include "avx-check.h" Index: ChangeLog =================================================================== --- ChangeLog (revision 165465) +++ ChangeLog (working copy) @@ -1,3 +1,15 @@ +2010-10-14 H.J. Lu + + * gcc.target/i386/avx-copysign-vec.c: Add -mtune=generic. + * gcc.target/i386/avx-copysignf-vec.c: Likewise. + * gcc.target/i386/pr44130.c: Likewise. + * gcc.target/i386/pr44144.c: Likewise. + * gcc.target/i386/pr44180.c: Likewise. + * gcc.target/i386/recip-vec-divf-avx.c: Likewise. + * gcc.target/i386/recip-vec-sqrtf-avx.c: Likewise. + * gcc.target/i386/vect-sizes-1.c: Likewise. + * gcc.target/i386/vectorize4-avx.c: Likewise. + 2010-10-14 Richard Guenther PR lto/44561