From patchwork Thu May 3 10:08:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 156662 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 57592B6FC3 for ; Thu, 3 May 2012 20:09:06 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1336644546; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Date:From:To:Cc:Subject:Message-ID:Reply-To: MIME-Version:Content-Type:Content-Disposition:User-Agent: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=VcxBtwff8FuGrSHRd/GY TFwi/T8=; b=dkkKbhaMeeb+21YOZ25IklWWLQcNIyXyzijIfSsFKXzDZYwFQa1C ruWGPSCqROc1cnBlBhST0bL8RXFPERo+51QuGcI2WZTyCuoZbJigq2Q0n6JUBAmU 886DlT4779VL4xa/hz3psfKY9sibYA0KHUaVyMyhCfr9Qgw1v+sh2LU= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:Received:Date:From:To:Cc:Subject:Message-ID:Reply-To:MIME-Version:Content-Type:Content-Disposition:User-Agent:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=Gn7jmfkcxtUvHa4jT1fXXpZbpo8fI2kXlL6s12jNqYjax19r+kTVV+t8J/pfWV 53TVP462ofkU1hcvRrAlNYR75vLmeRIyE4zOIfK5L+LTq5k1FtDH4rf3DJzjHZvN aZlXNxSAYa+TuwwUGlJhYBFLRnsUikSSvKkzWWwBs242Y=; Received: (qmail 6125 invoked by alias); 3 May 2012 10:08:49 -0000 Received: (qmail 6107 invoked by uid 22791); 3 May 2012 10:08:48 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_W, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 May 2012 10:08:23 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q43A8MQ4005502 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 3 May 2012 06:08:23 -0400 Received: from tyan-ft48-01.lab.bos.redhat.com (tyan-ft48-01.lab.bos.redhat.com [10.16.42.4]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q43A8MmT031769 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 3 May 2012 06:08:22 -0400 Received: from tyan-ft48-01.lab.bos.redhat.com (tyan-ft48-01.lab.bos.redhat.com [127.0.0.1]) by tyan-ft48-01.lab.bos.redhat.com (8.14.4/8.14.4) with ESMTP id q43A8LOV031227; Thu, 3 May 2012 12:08:21 +0200 Received: (from jakub@localhost) by tyan-ft48-01.lab.bos.redhat.com (8.14.4/8.14.4/Submit) id q43A8Ll6031225; Thu, 3 May 2012 12:08:21 +0200 Date: Thu, 3 May 2012 12:08:21 +0200 From: Jakub Jelinek To: Uros Bizjak , Richard Henderson , Kirill Yukhin Cc: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix some hle* tests Message-ID: <20120503100821.GX16117@tyan-ft48-01.lab.bos.redhat.com> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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! During testing with older gas I've noticed failures, where 0xf2 was a pasto instead of the right 0xf3 for xrelease insn. Fixed thusly, regtested on x86_64-linux and i686-linux, ok for trunk? BTW, I wonder if dg-options shouldn't select -march=i686 for !lp64, if somebody configures gcc to default to -march=i386, I guess xadd etc. won't be emitted there. 2012-05-03 Jakub Jelinek * gcc.target/i386/hle-xadd-rel-1.c: Match .byte 0xf3 instead of .byte 0xf2. * gcc.target/i386/hle-sub-rel-1.c: Likewise. * gcc.target/i386/hle-xchg-rel-1.c: Likewise. * gcc.target/i386/hle-add-rel-1.c: Likewise. Jakub --- gcc/testsuite/gcc.target/i386/hle-xadd-rel-1.c.jj 2012-05-03 09:13:52.309647976 +0200 +++ gcc/testsuite/gcc.target/i386/hle-xadd-rel-1.c 2012-05-03 11:19:24.335586795 +0200 @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-mhle" } */ -/* { dg-final { scan-assembler "lock\[ \n\t\]+\(xrelease\|\.byte\[ \t\]+0xf2\)\[ \t\n\]+xadd" } } */ +/* { dg-final { scan-assembler "lock\[ \n\t\]+\(xrelease\|\.byte\[ \t\]+0xf3\)\[ \t\n\]+xadd" } } */ int hle_xadd (int *p, int v) --- gcc/testsuite/gcc.target/i386/hle-sub-rel-1.c.jj 2012-05-03 09:13:52.310653828 +0200 +++ gcc/testsuite/gcc.target/i386/hle-sub-rel-1.c 2012-05-03 11:19:22.284585667 +0200 @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-mhle" } */ -/* { dg-final { scan-assembler "lock\[ \n\t\]+\(xrelease\|\.byte\[ \t\]+0xf2\)\[ \t\n\]+sub" } } */ +/* { dg-final { scan-assembler "lock\[ \n\t\]+\(xrelease\|\.byte\[ \t\]+0xf3\)\[ \t\n\]+sub" } } */ void hle_sub (int *p, int v) --- gcc/testsuite/gcc.target/i386/hle-xchg-rel-1.c.jj 2012-05-03 09:13:52.311657477 +0200 +++ gcc/testsuite/gcc.target/i386/hle-xchg-rel-1.c 2012-05-03 11:19:26.319587600 +0200 @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-mhle" } */ -/* { dg-final { scan-assembler "\[ \n\t\]+\(xrelease\|\.byte\[ \t\]+0xf2\)\[ \t\n\]+xchg" } } */ +/* { dg-final { scan-assembler "\[ \n\t\]+\(xrelease\|\.byte\[ \t\]+0xf3\)\[ \t\n\]+xchg" } } */ int hle_xchg (int *p, int v) --- gcc/testsuite/gcc.target/i386/hle-add-rel-1.c.jj 2012-05-03 09:13:52.310653828 +0200 +++ gcc/testsuite/gcc.target/i386/hle-add-rel-1.c 2012-05-03 11:19:19.435586105 +0200 @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-mhle" } */ -/* { dg-final { scan-assembler "lock\[ \n\t\]+\(xrelease\|\.byte\[ \t\]+0xf2\)\[ \t\n\]+add" } } */ +/* { dg-final { scan-assembler "lock\[ \n\t\]+\(xrelease\|\.byte\[ \t\]+0xf3\)\[ \t\n\]+add" } } */ void hle_add (int *p, int v)