From patchwork Mon Oct 14 12:35:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 283186 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]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E8B642C0359 for ; Mon, 14 Oct 2013 23:36:05 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; q=dns; s=default; b=eMsIqqm9UJ0USsjfJ6A6y8lCYIWVWwlsW/3UDUp8ge2h/VbSGJ guxMycEUJSAWvMnNJ11H7B9ttAI3xoSzyZEhV8uLOPymlN+V8PhpJHy0Qj22Wk02 kn+TGTnsR+OjpnffT7k4DpgJf1nuUS2DzAs7EXDLzNYeyW5a+U33hePG4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; s= default; bh=oBmkR4BniYZwPk44BD9RUthZqNI=; b=DDOxVb1nCxGOD0YUIsqE bLB/wT3TEn6qSHoA9mM0yOx3Fmc3t268deoBxJwOlsCONv5X3HFDcxKRM9T/6h31 Uo6vp4774PIwCORM/55Fd3mM6Ki4rDK375fRuAH5IDebtonZ/UDJSehEYkuCNbK7 jP1we2JCKxVNOu1JT0u8/V8= Received: (qmail 26699 invoked by alias); 14 Oct 2013 12:35:59 -0000 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 Received: (qmail 26689 invoked by uid 89); 14 Oct 2013 12:35:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: smtp-relay.CeBiTec.Uni-Bielefeld.DE Received: from snape.CeBiTec.Uni-Bielefeld.DE (HELO smtp-relay.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 14 Oct 2013 12:35:57 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 6F8A7717; Mon, 14 Oct 2013 14:35:55 +0200 (CEST) Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id wcmqTuKCZQEM; Mon, 14 Oct 2013 14:35:53 +0200 (CEST) Received: from lokon.CeBiTec.Uni-Bielefeld.DE (lokon.CeBiTec.Uni-Bielefeld.DE [129.70.161.110]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id B3C85716; Mon, 14 Oct 2013 14:35:53 +0200 (CEST) Received: (from ro@localhost) by lokon.CeBiTec.Uni-Bielefeld.DE (8.14.5+Sun/8.14.5/Submit) id r9ECZrW2004857; Mon, 14 Oct 2013 14:35:53 +0200 (MEST) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: Jakub Jelinek Subject: [testsuite] Fix gcc.dg/torture/pr58670.c for Solaris 9/x86 assembler Date: Mon, 14 Oct 2013 14:35:53 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (usg-unix-v) MIME-Version: 1.0 X-IsSubscribed: yes The new gcc.dg/torture/pr58670.c testcase FAILs on Solaris 9/x86 with the Sun assembler: FAIL: gcc.dg/torture/pr58670.c -O0 (test for excess errors) Excess errors: Assembler: pr58670.c "/var/tmp//cceOnFp7.s", line 18 : Illegal mnemonic "/var/tmp//cceOnFp7.s", line 18 : Syntax error "/var/tmp//cceOnFp7.s", line 45 : Illegal mnemonic "/var/tmp//cceOnFp7.s", line 45 : Syntax error as doesn't grok the unadorned bts, but requires btsl instead. The following patch doest just that; tested with the appropriate runtest invocation on i386-pc-solaris2.9 with either as or gas 2.23.2 and checking that with gas the generated insn stays the same. I guess this is obvious? Thanks. Rainer 2013-10-14 Rainer Orth * gcc.dg/torture/pr58670.c (ASM_STR) [__i386__ || __x86_64__]: Use btsl. # HG changeset patch # Parent 439bff21626bdf77e8264901c6c6607bb3a90741 Fix gcc.dg/torture/pr58670.c for Solaris 9/x86 assembler diff --git a/gcc/testsuite/gcc.dg/torture/pr58670.c b/gcc/testsuite/gcc.dg/torture/pr58670.c --- a/gcc/testsuite/gcc.dg/torture/pr58670.c +++ b/gcc/testsuite/gcc.dg/torture/pr58670.c @@ -2,7 +2,7 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ #if defined (__i386__) || defined (__x86_64__) -#define ASM_STR "bts $1, %0; jc %l[lab]" +#define ASM_STR "btsl $1, %0; jc %l[lab]" #endif __attribute__((noinline, noclone)) int