From patchwork Mon May 9 16:44:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 94823 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 9EE02B6EDF for ; Tue, 10 May 2011 02:45:14 +1000 (EST) Received: (qmail 5893 invoked by alias); 9 May 2011 16:45:11 -0000 Received: (qmail 5882 invoked by uid 22791); 9 May 2011 16:45:10 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RFC_ABUSE_POST, SPF_NEUTRAL, TW_AV, TW_ZJ, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (140.186.70.92) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 09 May 2011 16:44:56 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJTZn-00053p-3k for gcc-patches@gcc.gnu.org; Mon, 09 May 2011 12:44:55 -0400 Received: from mail-pw0-f47.google.com ([209.85.160.47]:39449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJTZm-00053b-NY for gcc-patches@gcc.gnu.org; Mon, 09 May 2011 12:44:55 -0400 Received: by pwj9 with SMTP id 9so2857066pwj.20 for ; Mon, 09 May 2011 09:44:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.78.12 with SMTP id a12mr3924153wfb.268.1304959492275; Mon, 09 May 2011 09:44:52 -0700 (PDT) Received: by 10.143.158.12 with HTTP; Mon, 9 May 2011 09:44:52 -0700 (PDT) Date: Mon, 9 May 2011 18:44:52 +0200 Message-ID: Subject: [PATCH, testsuite]: Add -mprefer-avx128 to DEFAULT_VECTCFLAGS From: Uros Bizjak To: gcc-patches@gcc.gnu.org Cc: "H.J. Lu" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.160.47 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! Vectorizer testsuite assumes 128bit vector widths. AVX breaks this assumption and that results in various spurious testsuite failures. Attached patch clears all failures on AVX target. 2011-05-09 Uros Bizjak * lib/target-supports.exp (check_vect_support_and_set_flags) : Add -mprefer-avx128 to DEFAULT_VECTCFLAGS. Uros. Index: lib/target-supports.exp =================================================================== --- lib/target-supports.exp (revision 173569) +++ lib/target-supports.exp (working copy) @@ -3845,6 +3845,8 @@ set dg-do-what-default run } elseif { [istarget "i?86-*-*"] || [istarget "x86_64-*-*"] } { lappend DEFAULT_VECTCFLAGS "-msse2" + # FIXME: Vectorizer testsuite assumes 128bit vector widths. + lappend DEFAULT_VECTCFLAGS "-mprefer-avx128" if { [check_effective_target_sse2_runtime] } { set dg-do-what-default run } else {