From patchwork Thu Feb 10 19:05: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: 82653 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 48AAFB70E3 for ; Fri, 11 Feb 2011 06:06:06 +1100 (EST) Received: (qmail 28096 invoked by alias); 10 Feb 2011 19:06:05 -0000 Received: (qmail 28088 invoked by uid 22791); 10 Feb 2011 19:06:04 -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, TW_ZJ, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-pz0-f47.google.com (HELO mail-pz0-f47.google.com) (209.85.210.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 10 Feb 2011 19:05:55 +0000 Received: by pzk12 with SMTP id 12so352338pzk.20 for ; Thu, 10 Feb 2011 11:05:53 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.155.17 with SMTP id c17mr20268542wfe.110.1297364752420; Thu, 10 Feb 2011 11:05:52 -0800 (PST) Received: by 10.142.57.15 with HTTP; Thu, 10 Feb 2011 11:05:52 -0800 (PST) Date: Thu, 10 Feb 2011 20:05:52 +0100 Message-ID: Subject: [PATCH, i386]: Add -march=k8 to some testcases 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! Some assembler scan tests are valid only for older ISAs; newer ISAs generate different instruction sequences. See i.e. [1]. 2011-02-10 Uros Bizjak * gcc.target/i386/parity-1.c: Use -march=k8. * gcc.target/i386/parity-2.c: Ditto. * gcc.target/i386/vecinit-1.c: Ditto. * gcc.target/i386/vecinit-2.c: Ditto. Tested on x86_64-pc-linux-gnu {,-m32}, committed to mainline SVN. [1] http://gcc.gnu.org/ml/gcc-testresults/2011-02/msg01097.html Uros. Index: gcc.target/i386/parity-1.c =================================================================== --- gcc.target/i386/parity-1.c (revision 170004) +++ gcc.target/i386/parity-1.c (working copy) @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2" } */ +/* { dg-options "-O2 -march=k8" } */ /* { dg-final { scan-assembler "setnp" } } */ int foo(unsigned int x) Index: gcc.target/i386/vecinit-2.c =================================================================== --- gcc.target/i386/vecinit-2.c (revision 170004) +++ gcc.target/i386/vecinit-2.c (working copy) @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -msse2" } */ +/* { dg-options "-O2 -march=k8 -msse2" } */ #define vector __attribute__((vector_size(16))) Index: gcc.target/i386/vecinit-1.c =================================================================== --- gcc.target/i386/vecinit-1.c (revision 170004) +++ gcc.target/i386/vecinit-1.c (working copy) @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -msse2" } */ +/* { dg-options "-O2 -march=k8 -msse2" } */ #define vector __attribute__((vector_size(16))) Index: gcc.target/i386/parity-2.c =================================================================== --- gcc.target/i386/parity-2.c (revision 170004) +++ gcc.target/i386/parity-2.c (working copy) @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2" } */ +/* { dg-options "-O2 -march=k8" } */ /* { dg-final { scan-assembler "setnp" } } */ int foo(unsigned long long int x)