From patchwork Fri Sep 13 05:56:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Koenig X-Patchwork-Id: 1985001 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=netcologne.de header.i=@netcologne.de header.a=rsa-sha256 header.s=nc1116a header.b=Mlbvhd9d; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X4k8W1CLqz1y2H for ; Fri, 13 Sep 2024 15:56:43 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0D526385C6CC for ; Fri, 13 Sep 2024 05:56:41 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from cc-smtpout3.netcologne.de (cc-smtpout3.netcologne.de [IPv6:2001:4dd0:100:1062:25:2:0:3]) by sourceware.org (Postfix) with ESMTPS id 367E2385B82F; Fri, 13 Sep 2024 05:56:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 367E2385B82F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=netcologne.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=netcologne.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 367E2385B82F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:4dd0:100:1062:25:2:0:3 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1726206972; cv=none; b=iuCHD2wIIjxEPfcwSVepLt60/uA1Rd5COxjqWwdcqsgFwcZ+id6X4OqTMy9TtXaCSnm2sCkZQlHaIIc+VV9v7bWEoS3XWVbZoJGySfm34IOIeZUUQKr/eZXEXczEUNVMSAIxmU39Z5r6UVwIae8M6SM3RpRtFpqug0RfrSQjypM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1726206972; c=relaxed/simple; bh=CHtDx+xZ/E1Nwi/7WuUknO5+C7GxUv+W2xLEePYueUQ=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=QLddbnsRHjqpX0XdU0zdwR8TWS2ynsxUfQAu2DXY7LQeajp9z1SL66cOz9lMIzHpbwQvr9y6VwlKVJ1kfLTb4WdHeukzqG1lUcyXCvuYBhv0mdbGM1ARJ61XpTZ2Rhqdq68M26lul+BHOKHJgZLG1q8PrBana8USW1LsGn8WKKo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from cc-smtpin1.netcologne.de (cc-smtpin1.netcologne.de [89.1.8.201]) by cc-smtpout3.netcologne.de (Postfix) with ESMTP id D973D125E7; Fri, 13 Sep 2024 07:56:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=netcologne.de; s=nc1116a; t=1726206966; bh=CHtDx+xZ/E1Nwi/7WuUknO5+C7GxUv+W2xLEePYueUQ=; h=Message-ID:Date:To:From:Subject:From; b=Mlbvhd9d8FRICf5RjysnJzCoY7nxP2lrSaVoRzOYHWpHI9GfZzMuV59JTBxAPFEQ6 qBDFUeoDOVrg5iBgrNH02C2puKsIRRmib6LXq+HFAiZRG71FW98WvIS1hoM0JBBI1Z owwbjRi7rmgE09NN6UuHA2R9rf/25n04CrrLl2OM79yw9Shwv0/xsh4Z24Bymm32ci 8s7fr1Im0zZD/YXE2xs0fJDmRSgwPvKBIq2rGszdhF9JJjaGg11QyWhH37ZFshWGjt z/+G5jlohW4GHN2Z9VJ78fRs14YY2a5yZc8vRfhyVmAJGQyLHeRrkDo+UaglbCmzr7 UaLiQk/e52GVw== Received: from [IPV6:2a0a:a540:373e:0:edd5:1da8:e281:bb1d] (2a0a-a540-373e-0-edd5-1da8-e281-bb1d.ipv6dyn.netcologne.de [IPv6:2a0a:a540:373e:0:edd5:1da8:e281:bb1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by cc-smtpin1.netcologne.de (Postfix) with ESMTPSA id 8E3EA11D77; Fri, 13 Sep 2024 07:56:05 +0200 (CEST) Message-ID: <88ceb07b-13ab-44b0-85a9-475785e53150@netcologne.de> Date: Fri, 13 Sep 2024 07:56:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US, de-DE To: "fortran@gcc.gnu.org" , gcc-patches From: Thomas Koenig Subject: [patch, teststuite, Fortran, committed] Fix endianness issue on test case X-NetCologne-Spam: L X-Rspamd-Action: no action X-Rspamd-Queue-Id: 8E3EA11D77 X-Spamd-Bar: - X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org I just committed the fix for PR 116653 as obvious. Unfortunately, I left out the description in the ChangeLog, I hope it is clear enough. Best regards Thomas https://gcc.gnu.org/g:5d9486c29938d79beb798dce1a5509da54fe8c9f commit r15-3619-g5d9486c29938d79beb798dce1a5509da54fe8c9f Author: Thomas Koenig Date: Fri Sep 13 07:47:24 2024 +0200 Fix endianness issue on unsigned_21.f90. gcc/testsuite/ChangeLog: PR fortran/116653 * gfortran.dg/unsigned_21.f90: * gfortran.dg/unsigned_21_be.f90: New test. diff --git a/gcc/testsuite/gfortran.dg/unsigned_21.f90 b/gcc/testsuite/gfortran.dg/unsigned_21.f90 index 23302c7eabe..c3f65a469dc 100644 --- a/gcc/testsuite/gfortran.dg/unsigned_21.f90 +++ b/gcc/testsuite/gfortran.dg/unsigned_21.f90 @@ -1,5 +1,6 @@ ! { dg-do run } ! { dg-options "-funsigned" } +! { dg-require-effective-target le } program main integer :: i integer(2) :: j diff --git a/gcc/testsuite/gfortran.dg/unsigned_21_be.f90 b/gcc/testsuite/gfortran.dg/unsigned_21_be.f90 new file mode 100644 index 00000000000..64fecd9cd4a --- /dev/null +++ b/gcc/testsuite/gfortran.dg/unsigned_21_be.f90 @@ -0,0 +1,14 @@ +! { dg-do run } +! { dg-options "-funsigned" } +! { dg-require-effective-target be } +program main + integer :: i + integer(2) :: j + unsigned :: u + i = -1 + u = transfer(i,u) + if (u /= huge(u)) error stop 1 + u = 4278058235u + j = transfer(u,j) + if (j /= -259) error stop 2 +end program main