From patchwork Sat May 24 18:56:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 352153 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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 84D8514007C for ; Sun, 25 May 2014 04:56:32 +1000 (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:references:date:in-reply-to:message-id :mime-version:content-type; q=dns; s=default; b=iok+LgJEpau1p7wz aBmt51YY7WlFVPjKhZ4E9/Dk4t95ppfEjTJuFzNe8rJK8BbP+Imotz/QWvAEx+9D Sr5LkTfg3MBYJUvSRsDHDC5dcyk+0XHKlloRM9B3Kbb82mWJl5or4zslbcSVvLbe DlDFvRMyEcXuR8zmaaRUIWDbJPE= 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:references:date:in-reply-to:message-id :mime-version:content-type; s=default; bh=nhfy2bkT1HZJmVbGZbvLI7 tw3mA=; b=PA1s2uHvFCAYQoUrlmFnDLo/gG9z/JAEXQlzWx977Tt3LSVcLhpvf2 K45yATQxxcZLroascbAPLXiJdXD7ChtrGi1OUO9Mq/GbKmV/8bIYtfwfipwQWq2V /q4Q7Kws62zWKU8/nZZvsOPRBC1CZ8tsl8i4XvW1Hfnqx4dS1+SM0= Received: (qmail 422 invoked by alias); 24 May 2014 18:56:25 -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 413 invoked by uid 89); 24 May 2014 18:56:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: mail-out.m-online.net Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Sat, 24 May 2014 18:56:22 +0000 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3gbYgl3Fw8z3hhcq; Sat, 24 May 2014 20:56:19 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3gbYgl2XzKzbbgJ; Sat, 24 May 2014 20:56:19 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id Hw-o2cf8MzZG; Sat, 24 May 2014 20:56:18 +0200 (CEST) X-Auth-Info: wuIJti08f+adJNlvs9SlbtPEyuninV83scA1b9xJzo0= Received: from igel.home (ppp-188-174-153-105.dynamic.mnet-online.de [188.174.153.105]) by mail.mnet-online.de (Postfix) with ESMTPA; Sat, 24 May 2014 20:56:18 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 81D872C2F93; Sat, 24 May 2014 20:56:18 +0200 (CEST) From: Andreas Schwab To: "Thomas Preud'homme" Cc: "GCC Patches" Subject: Re: [PATCH] Fix PR54733 Optimize endian independent load/store References: <006f01cf6b71$1cf10df0$56d329d0$@arm.com> <000001cf70ee$9aa2ed90$cfe8c8b0$@arm.com> <000801cf73d5$be55b530$3b011f90$@arm.com> <000001cf7416$52f0f7a0$f8d2e6e0$@arm.com> <000101cf7490$102c11f0$308435d0$@arm.com> X-Yow: I decided to be JOHN TRAVOLTA instead!! Date: Sat, 24 May 2014 20:56:18 +0200 In-Reply-To: <000101cf7490$102c11f0$308435d0$@arm.com> (Thomas Preud'homme's message of "Wed, 21 May 2014 09:00:28 +0800") Message-ID: <87vbsvgg4t.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.91 (gnu/linux) MIME-Version: 1.0 * gcc.c-torture/execute/bswap-2.c (main): Handle more bitfield layouts. diff --git a/gcc/testsuite/gcc.c-torture/execute/bswap-2.c b/gcc/testsuite/gcc.c-torture/execute/bswap-2.c index e91b487..38f18fd 100644 --- a/gcc/testsuite/gcc.c-torture/execute/bswap-2.c +++ b/gcc/testsuite/gcc.c-torture/execute/bswap-2.c @@ -74,11 +74,11 @@ main () return 0; bfin.inval = (struct ok) { 0x83, 0x85, 0x87, 0x89 }; out = partial_read_le32 (bfin); - if (out != 0x09070503 && out != 0x88868482) + if (out != 0x09070503 && out != 0x88868482 && out != 0x78306141) __builtin_abort (); bfin.inval = (struct ok) { 0x83, 0x85, 0x87, 0x89 }; out = partial_read_be32 (bfin); - if (out != 0x03050709 && out != 0x82848688) + if (out != 0x03050709 && out != 0x82848688 && out != 0x41613078) __builtin_abort (); out = fake_read_le32 (cin, &cin[2]); if (out != 0x89018583)