From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by sourceware.org (Postfix) with ESMTPS id C9AD43858436 for ; Thu, 2 Sep 2021 14:50:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C9AD43858436 Received: by mail-pg1-x529.google.com with SMTP id e7so2231667pgk.2 for ; Thu, 02 Sep 2021 07:50:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:from:to:cc:references:in-reply-to :subject:date:mime-version:importance; bh=Oa7m7NV/0/e84TQidBnbbciJLEbURxIRtthBmAJGu4s=; b=oHOoex2K62TauQL4AJyjDDLb2eGHKydjfsqdAHAwlfqAqftn6LNHmEoA+zVVLFKaIJ RjMrspJJTfK1TpaQJ5pEbeckMmX6dkvSt7EWsc7d53o8yuWbvvBJt67DCYjrnCR4r3yR cMAt5wxuxVTwyCsmdJ17oGW7usg7jYUYZTCrlVmCZaJwLQUS03IF3X6rzAgTdx8mpyXT 7ATPXUtxK50V7qcWxgX4Iq/STGEi3K8zQjybKgwAMtnxP5p9lxSXiHHYHQWNRkDB8Ali 7q3kJbg4siV42DGMaZZNm9x5izBf00BV9Knmf9dFdrEUqgNtvjtGV6nI07MzIgJYk4yz 9R3g== X-Gm-Message-State: AOAM531A0C7EtlVoTsMlmGPf5vSQw/9ARFpYfh65QVL6AYbgXESm3TGc pTTqRqzN+nfte4O0gmhQAAk= X-Google-Smtp-Source: ABdhPJwb7uAvWxjSU4UQbFM3EVrTYMKYrtArn+nwKivAPFLM9EeLyiLPpS1ct3eQ/MGq363IJZIgFQ== X-Received: by 2002:aa7:8b07:0:b029:3c7:c29f:9822 with SMTP id f7-20020aa78b070000b02903c7c29f9822mr3534127pfd.33.1630594240812; Thu, 02 Sep 2021 07:50:40 -0700 (PDT) Received: from DESKTOP0OKG1VA ([202.169.113.201]) by smtp.gmail.com with ESMTPSA id g17sm2623895pfi.168.2021.09.02.07.50.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Sep 2021 07:50:40 -0700 (PDT) Message-ID: From: "Paul Edwards" To: "Ulrich Weigand" Cc: , "Ulrich Weigand" References: <200906051520.n55FKg7T016481@d12av02.megacenter.de.ibm.com> In-Reply-To: Subject: Re: s390 port Date: Fri, 3 Sep 2021 00:50:35 +1000 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 16.4.3528.331 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331 X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2021 14:50:43 -0000 Hi Ulrich. Thanks a lot for your reply. Could you give me an example of an instruction generated by =E2=80=93m31 that is not expected to work on an AM64 system? E.g. the 32-bit LR R2,R3 will definitely work on AM64. So what specifically won=E2=80=99t work? How many different things won=E2=80=99t work? Thanks. Paul. From: Ulrich Weigand=20 Sent: Friday, September 3, 2021 12:34 AM To: Paul Edwards=20 Cc: gcc@gcc.gnu.org ; Ulrich Weigand=20 Subject: Re: s390 port Hi Paul, "Paul Edwards" wrote on 02.09.2021 10:15:44: > We got the IPL process in place on ESA/390, and then > I decided that the next thing to do would be to switch > to z/Arch so that we could get rid of the AMODE 31 > architectural limit on 32-bit programs. >=20 > It all worked fine, and we were able to use GCC 11 to > target S/390 and use the -m31 to generate 32-bit code, > run it under z/Arch as AM64, sort of making it the > equivalent of AM32. Really it is the equivalent of > AM-infinity, and there's the rub - GCC 11 is generating > negative indexes, which cause memory above 4 GiB > to be accessed (instead of wrapping at 2/4 GiB), which > of course fails. Can you elaborate what exactly your goals are? The point of the -m31 vs. -m64 option is exactly to match the AMODE 31 vs. AMODE 64 hardware distinction, so trying to run -m31 code in AMODE 64 is not supposed to work. Bye, Ulrich