From patchwork Thu Dec 28 20:42:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 122874 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp3898712qgn; Thu, 28 Dec 2017 12:43:02 -0800 (PST) X-Google-Smtp-Source: ACJfBovlkFhYDh1spfMYX9Lv9wvoLMlMwbrNnFvfLVe+SLwdtiz2sutFEUnP1oYvR4jeve/3nYuK X-Received: by 10.98.13.133 with SMTP id 5mr32860913pfn.112.1514493782918; Thu, 28 Dec 2017 12:43:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514493782; cv=none; d=google.com; s=arc-20160816; b=uTkU1M+8wBbaeJLeU3QiIBH8WlyxWdN+0DRNtjPaWhbyzbH+86dl9Dtl9oo3n/Yd4Y UQkZOFW6fOUZpZ3ocUKTNmtKsHAB91QkxgfGvxMs3ynlclBN+5yBJCQWcCHkHtkho2DW zXIjwZoVJ+YDP0ZcYsbzhs6hY1ubWjQ9UP/QUdXLNKtxQUwJotyuM8d+LCtV2jznnrjl 4RQVXU4ai0z+L9FfiM5NdVtnrjBZmMh3oU2ESKz0t9Gj+6NBrwPTlbSceVg5TZusMwT+ MJ30hYnsNimBxn5pw4GdEmUKGQSFcOzEhtcDpj9/DRjEGxnqI3a7GAtqO+rwL8tbNLAZ mHVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:message-id:date:subject:mail-followup-to:to :from:delivered-to:sender:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature:arc-authentication-results; bh=g6BTKOFzSdqEMQBkHR1nk0AR+bZ4q8FGdtIDCTI5jO4=; b=ziU2SiqdTdU5lV7h9W9GnfjsRna7IwWj03NcrBk6g/UkonjGura8fIVshPnF9+Zv3i 1D3kV8Xp2MxRFgg3bQDnWqVm+2oez/EXHnD+BBXUpNCmTV6BuGK9lWl+TO+/mm8C6KSL 0RalwabvNpIfavcUN8Bb4e9fuE11jC9P4d5gkRaBjmvCPsXP7hKPpz6Zqcqhe1VpMDLW cLY+4LpjoT7G4CdO4bCikFQjpd+5nt7r2l2Aj88w6v6rV7v+DQ49dfgAMTDPLGmUIYvt YNcFeVvg4QP65yZfkCWylKwnesuUn3GoAQdvMPupDoSWDfI61Q83OhUebicnpvVn3xsp CnNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=YOPoynSP; spf=pass (google.com: domain of gcc-patches-return-469869-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-469869-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id y1si14507847pgr.220.2017.12.28.12.43.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Dec 2017 12:43:02 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-469869-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=YOPoynSP; spf=pass (google.com: domain of gcc-patches-return-469869-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-469869-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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:subject:date:message-id:mime-version:content-type; q=dns; s= default; b=vnsrgt5QKSakSZ1dt6OuNj0hSoPE6eQ/jZ3FSwhFQTkCKGNLG1Iea 5L/6ZX7GoCMgAxsufjTkkA8CW7M6OYihzWxJN6uhRsB232xtKcJx+Uj+UYTOoQeA RT1t1qRdtMc3dRcXdV1kCaZPJATJNvADaC2a+GP9bB27zlSR4Nueq8= 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:subject:date:message-id:mime-version:content-type; s= default; bh=yjLKQzsRgKK+JfSYS3zPb3BtZuE=; b=YOPoynSP9bRVCPaz1t89 FMAJs/MkKvYdoJLGUVT+wQIfnZQc/sZ+qnop5S47qHF11WSrJDePSL/4lySrQO3V NjwH8L4qTPCGORM7c3C6KbVRG/vYqertqMO8bXmZBzLCc7aRisb6riQbF7q9h2Gq JsFF2eqBRcXVaMLSz/Jx4Rw= Received: (qmail 29681 invoked by alias); 28 Dec 2017 20:42:52 -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 29666 invoked by uid 89); 28 Dec 2017 20:42:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=we'd X-HELO: mail-wm0-f43.google.com Received: from mail-wm0-f43.google.com (HELO mail-wm0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 28 Dec 2017 20:42:49 +0000 Received: by mail-wm0-f43.google.com with SMTP id i11so45348003wmf.4 for ; Thu, 28 Dec 2017 12:42:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:mail-followup-to:subject:date:message-id :user-agent:mime-version; bh=g6BTKOFzSdqEMQBkHR1nk0AR+bZ4q8FGdtIDCTI5jO4=; b=WJaUMq5tC7IYff1npEezxYe17hEPTWtM6ETSKR5fKskAlaR5Ftkbf/dCnzli8fi/Q9 xtn66kRo4YSlB5qPC94+NiFRu2196HcVeOSMDyEDhLP0D6eL6krwF68i3Tazrc2J1pSm 2QZDonmVic8ydvOE6lBWbESt48feQg2KmwVy6NiZTraYrb67YEv6BXwHRUePIR6tgZ/a 98xandlrn7v1o5dyGgJ/dl1UMFRL3sqCTpxVtHwcPjBJ4v0ZYFcIjJRk6McWfQK/wQ7w oXBLvWN5Pd44VfHAJi7lXNxZ/SuDHhUjsEvC2erPoavz94RS3YDm+KxkaQC2BOEdIZJg Lzrg== X-Gm-Message-State: AKGB3mI7M7Z9KWVlUuHmSn+/sfP9e8nP17pTXdGWreqCTrVR6dKPm9Tk 8WlvjMQsilnp8UidWcCpYtHWGUyzfhg= X-Received: by 10.28.211.211 with SMTP id k202mr28336032wmg.113.1514493767528; Thu, 28 Dec 2017 12:42:47 -0800 (PST) Received: from localhost ([95.145.138.186]) by smtp.gmail.com with ESMTPSA id q74sm38014319wmg.22.2017.12.28.12.42.46 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Dec 2017 12:42:46 -0800 (PST) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@linaro.org Subject: [committed] [rs6000] Use gen_int_mode in ieee_128bit_negative_zero Date: Thu, 28 Dec 2017 20:42:46 +0000 Message-ID: <878tdminy1.fsf@linaro.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Previously we'd generate a non-canonical zero-extended CONST_INT instead of a sign-extended one, which tripped the assert for canonical CONST_INTs after a later patch. Tested on powerpc64le-linux-gnu and installed as obvious. Richard 2017-12-28 Richard Sandiford gcc/ * config/powerpcspe/powerpcspe.md (ieee_128bit_negative_zero): Use gen_int_mode rather than GEN_INT. * config/rs6000/rs6000.md (ieee_128bit_negative_zero): Likewise. Index: gcc/config/powerpcspe/powerpcspe.md =================================================================== --- gcc/config/powerpcspe/powerpcspe.md 2017-09-04 11:50:08.531037669 +0100 +++ gcc/config/powerpcspe/powerpcspe.md 2017-12-28 16:56:59.791383685 +0000 @@ -8113,7 +8113,7 @@ (define_expand "ieee_128bit_negative_zer RTVEC_ELT (v, i) = const0_rtx; high = (BYTES_BIG_ENDIAN) ? 0 : 15; - RTVEC_ELT (v, high) = GEN_INT (0x80); + RTVEC_ELT (v, high) = gen_int_mode (0x80, QImode); rs6000_expand_vector_init (operands[0], gen_rtx_PARALLEL (V16QImode, v)); DONE; Index: gcc/config/rs6000/rs6000.md =================================================================== --- gcc/config/rs6000/rs6000.md 2017-12-07 18:38:16.674205190 +0000 +++ gcc/config/rs6000/rs6000.md 2017-12-28 16:56:59.792384020 +0000 @@ -8055,7 +8055,7 @@ (define_expand "ieee_128bit_negative_zer RTVEC_ELT (v, i) = const0_rtx; high = (BYTES_BIG_ENDIAN) ? 0 : 15; - RTVEC_ELT (v, high) = GEN_INT (0x80); + RTVEC_ELT (v, high) = gen_int_mode (0x80, QImode); rs6000_expand_vector_init (operands[0], gen_rtx_PARALLEL (V16QImode, v)); DONE;