Message ID | 20210221000903.32039-6-marcus@mc.pp.se |
---|---|
State | Superseded |
Headers | show
Delivered-To: patches-gcc@linaro.org Received: by 2002:a4a:af48:0:0:0:0:0 with SMTP id x8csp593687oon; Sat, 20 Feb 2021 16:09:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRegRfdNMDh1vKPJOb6dhJnSQzfa4nMhSHbw08+43j7BcVJuZazbxWNWWhDpns+tFoIaro X-Received: by 2002:aa7:dc0d:: with SMTP id b13mr15977956edu.170.1613866185184; Sat, 20 Feb 2021 16:09:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613866185; cv=none; d=google.com; s=arc-20160816; b=Igc5xx5motfZ1wvzgz83+TUm4F5P4Qbk0hwSYPVKwF36k3ubNDtI39gNtPDZgi89DQ 0ve/bTKJx3aAUvS2d9OVLjUbEzY17l5J9Gb00+9U0YyxFdY1xOjogXEp1ywLQ+c2YkuK UsGf79yldbUQtrAo4eQFwKFpVND09KCzS+TEPpRQo5E8xFjstD/iG1wd/t4as8SRWbJc L/RV1uvaA84xSIgoqg6q/P7Np1LMM/bVh9fQeNxBTLAx0rwB9ycvwIj0nQInfwW2e9pT OUlnzJLY0MDeIx8qb7ee8BacNXVMWUY+uW+AqjYD73lCrDLTmHoxQGdCOf+pajH3RlYV z0Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:dmarc-filter:delivered-to; bh=sE0t9KJ3Inq6FhL5iKqAscorKvffIf0nKyc4kvtstZ0=; b=xayG/i3ni9Ca7CjM/O0Cb3trKwDOF+3xY1W8Sl/LHq08ACGCSgMIkpx6cg822NnvYv l5GEqnY8NEFYLYWxq0VtwET9e/UL5YaWLeJrzuvxHDXycirNuI57fX8ya85jAGScAcyI uPVn2EH00sKHCcZSoClllneP6ymZBt19XAqMMuBcqEUFc1/igsbmtjr3sF+y0jvf3DUW +otGATKiVP3cujopS1JRKhDQn4asmFmHdWlhyQdHk7BJLpZiyk2BFco/o9eAwtdgl5hu gfWsQ0r6yQKS9EHH71K4WVTEDJl32cH0vDLZ6JMYmWsv9EJUyhay/L86lwIfLCv9YfmD 6+Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@mc.pp.se header.s=hedgehog header.b=mM+VYNST; spf=pass (google.com: domain of gcc-patches-bounces@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom=gcc-patches-bounces@gcc.gnu.org Return-Path: <gcc-patches-bounces@gcc.gnu.org> Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id eb13si9998239edb.538.2021.02.20.16.09.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Feb 2021 16:09:45 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@mc.pp.se header.s=hedgehog header.b=mM+VYNST; spf=pass (google.com: domain of gcc-patches-bounces@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom=gcc-patches-bounces@gcc.gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A403B386F448; Sun, 21 Feb 2021 00:09:23 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from bahamut.mc.pp.se (bahamut.mc.pp.se [IPv6:2001:470:dcd3:1:214:4fff:fe97:7322]) by sourceware.org (Postfix) with ESMTP id 55DE23848010 for <gcc-patches@gcc.gnu.org>; Sun, 21 Feb 2021 00:09:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 55DE23848010 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=mc.pp.se Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=marcus@mc.pp.se Received: from hakua (hakua [192.168.42.40]) by bahamut.mc.pp.se (Postfix) with SMTP id 3E13AA2BC8; Sun, 21 Feb 2021 01:09:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mc.pp.se; s=hedgehog; t=1613866159; bh=V7Nd18y/xRhjzbvJw5CguFx2A1WXCHq+k9R9oex9Ts4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; b=mM+VYNSToywsULU/Tv9QvHxu eKoou0dU+Zbt8Auf2xqkrJUASLq4+usFO/+rF32M9OAfJRtZwedp7yd7M98mjT0jCdR DnKQUYcTvIwglGPiuWVeWVz/VwjlxMCuA4x5/N2YeY+dZDX4jlbjef+njjqiOMX3Fd8 8FYXRufbcrHTY= Received: by hakua (sSMTP sendmail emulation); Sun, 21 Feb 2021 01:09:18 +0100 From: "Marcus Comstedt" <marcus@mc.pp.se> To: GCC Patches <gcc-patches@gcc.gnu.org> Subject: [PATCH v2 5/5] RISC-V: Update shift-shift-5.c testcase for big endian Date: Sun, 21 Feb 2021 01:09:03 +0100 Message-Id: <20210221000903.32039-6-marcus@mc.pp.se> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210221000903.32039-1-marcus@mc.pp.se> References: <20210221000903.32039-1-marcus@mc.pp.se> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Cc: Marcus Comstedt <marcus@mc.pp.se> Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces@gcc.gnu.org> |
Series |
|
Related |
show
|
diff --git a/gcc/testsuite/gcc.target/riscv/shift-shift-5.c b/gcc/testsuite/gcc.target/riscv/shift-shift-5.c index 5b2ae89a471..0ecab9723c9 100644 --- a/gcc/testsuite/gcc.target/riscv/shift-shift-5.c +++ b/gcc/testsuite/gcc.target/riscv/shift-shift-5.c @@ -7,7 +7,11 @@ unsigned long sub (long l) { union u { +#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ struct s { int a : 19; unsigned int b : 13; int x; } s; +#else + struct s { int x; unsigned int b : 13; int a : 19; } s; +#endif long l; } u; u.l = l;