From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by sourceware.org (Postfix) with ESMTPS id 95A493857C68 for ; Wed, 9 Sep 2020 13:20:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 95A493857C68 Received: by mail-pg1-x535.google.com with SMTP id 67so2036947pgd.12 for ; Wed, 09 Sep 2020 06:20:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=+yIVaPOm8vTs7W+W4DzHOOOIxIfyDpWAADh/HVIHcdg=; b=gD1FdXZCbpSLrKQIsEuJC1t5UK9pGX9HFPo+ygK4+jz9SGC9TPlhhpuNT4phsXg0rh eavPATanIi7HhT5tYui8wsLmP1NS/+XnFfm2vBAPSkM03u6SsuW+Mn+rA4cSUcRRTIWS dgHCHTwSGm9CtkE19VrM71Sxm43u/T3bnThRfFTQt06QqzwR1t8104ucqg0E3z9HAl2D N429BjeQIMcE0Q91IJMySywwP7Tnikbv2S2C5MexkHoXEUcjOpqK5YDs4uayrNhwGljk wWx/JOI5Dg1RjYC3rPJ1Osygaq49gdXXvWtbJbStSb5nJVNWM4NdOGt3VeMvUnnNkKgt QdLw== X-Gm-Message-State: AOAM532Fm88FP7fUCzDwxRRvjzdIcLUQMFFGdyUifQQs04WEE4KXxlln F42FU3n8dOVEdNTjA2yv1qKHPbjuuwo= X-Google-Smtp-Source: ABdhPJxuK8dGMPZ9U3obu/+Su/hlc9dlRxpRNeTstp+EMMzAaO8X7FQHC+FlpkStJcZzuqCSi8awGw== X-Received: by 2002:a63:e015:: with SMTP id e21mr643880pgh.264.1599657635450; Wed, 09 Sep 2020 06:20:35 -0700 (PDT) Received: from bubble.grove.modra.org ([2406:3400:51d:8cc0:546f:ce8f:2c6b:12ba]) by smtp.gmail.com with ESMTPSA id m24sm2417970pgn.44.2020.09.09.06.20.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 06:20:34 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id CE27B86AE7; Wed, 9 Sep 2020 22:50:30 +0930 (ACST) Date: Wed, 9 Sep 2020 22:50:30 +0930 From: Alan Modra To: binutils@sourceware.org Subject: power10 on ppc32 Message-ID: <20200909132030.GD15695@bubble.grove.modra.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-10.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, 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: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Sep 2020 13:20:37 -0000 We don't support power10 on ppc32, mainly because some instructions have 34-bit fields for which we don't have relocations on ppc32. If you try to assemble typical code, you'll see errors saying "reloc ... not supported by object file format". Also, on 32-bit hosts with binutils configured without a 64-bit bfd, you'll see errors saying "bignum invalid" when using large offsets. But let's not kill output of prefix insns entirely on 32-bit hosts. * config/tc-ppc.c (md_assemble): Emit prefix insn by parts when valueT is smaller than 64 bits. diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 1ff1cd9eab..441818215e 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -3882,7 +3882,8 @@ md_assemble (char *str) /* The prefix part of an 8-byte instruction always occupies the lower addressed word in a doubleword, regardless of endianness. */ - if (!target_big_endian && insn_length == 8) + if (insn_length == 8 + && (sizeof (insn) > sizeof (valueT) || !target_big_endian)) { md_number_to_chars (f, PPC_GET_PREFIX (insn), 4); md_number_to_chars (f + 4, PPC_GET_SUFFIX (insn), 4); -- Alan Modra Australia Development Lab, IBM