From patchwork Thu Jan 4 09:53:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 123397 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp11224751qgn; Thu, 4 Jan 2018 01:54:02 -0800 (PST) X-Google-Smtp-Source: ACJfBotVc8tMwkSBa9spStHiTohlAQ4vsevPZSRnwOxDGyUNYj58tglokm2pqqR53ymYrSKQxggc X-Received: by 10.99.55.23 with SMTP id e23mr3544981pga.156.1515059642207; Thu, 04 Jan 2018 01:54:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515059642; cv=none; d=google.com; s=arc-20160816; b=zxcR0S92BfMnS1fRDnluJmv2IalnRbZZPi5EyBbBBgD9Uv3UC/O1EM7/GKdVmuXcK5 Y9uMC9tilfSfhLMjyIRtuqHt0ummVClupJoUkxtO+qqUnGO1uGSDFks5JTEoa7Cgb/tL 7HPCpdRNT4N5zkDQym121lwJS6KK4V/qgF6KlXbZtDhaclY6snngMh0kVXz3W5/eELsI uvLOk57nS/9P2drAmJmXUb/39mXzbUfAGnG/pP48KNp8VCULlEYbCsdShtooAaMijaUe n0rlGiPEuaMTwB0tOj/318oREuGluX7g//Iu6Rst/gswIMzn6xLMkS1WRhb+X97/WwU/ 23hg== 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=z+haa5eY2sQIcP0DgEolWgOikQOOZHv8O8M5HmLVrqQ=; b=GWBkfvCqAPqDFGfmtIXZFHLeLpqUTBnQwU+5TeCAFhiH4Y+vK5RkNHuN9aReAiEnPC /W4ZowDp7BWviSAmW7/RQsR8wW4Z9LWE9H8+d8ElK+feNewvte0Wn5o6fH0p6UxWqGIK bEoZxjKU9ygZ1bvPOxSZEhr5YLGzknmXcDLYi8yzk5Bxo2mcKdpTALLNY1svQ89hBZa8 ELdFM1PvMVAODly/FSYCkQMxUd1KLQj1ghYpGO3RIZl94N8cUCngXv8GRG3avxL3jREl BwOe5eY9LYLPSpCeinU66FWZ+VM1mTM2lAS8ei1F2U+hxbwjv0GX8+vD7lO0qqPZ5KRU T/Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=TRvTxywu; spf=pass (google.com: domain of gcc-patches-return-470124-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-470124-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 w61si2056721plb.736.2018.01.04.01.54.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jan 2018 01:54:02 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-470124-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=TRvTxywu; spf=pass (google.com: domain of gcc-patches-return-470124-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-470124-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=FCxG+Kcp9pceYABHz0+VuOqMWSSjjSsRG1L77+f03TqBCvpBS/ygP FyY2TUa+em0cPMzZbBHuczB7wqkc945Hy28XMXXpUZ7LTO+g4tz8y1PetDKEwazy aeIMSmKTRyijOUtTMPWDHntY8kFnMKbC0aX2ZA4vAbb08YDtoc7cGI= 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=8TcT//dsGdsOfQAqAuqddOFC830=; b=TRvTxywuKy/KAJIPmf+6 /AjGbZmpZddmNyFBPTijyM2GMTcbG/qgZB5iFru9VD/qDMQtSEOl9Y3gu2Dbl/IK q74euivFyvilPDC/a+7zQoxE8iMMNoz+dc2kuqwtuESXmk9kN7qj5p+2ZB4rxqFE V3nHIvx7S8JGGIFDXxDGb18= Received: (qmail 99705 invoked by alias); 4 Jan 2018 09:53:50 -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 99683 invoked by uid 89); 4 Jan 2018 09:53:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-12.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-wr0-f174.google.com Received: from mail-wr0-f174.google.com (HELO mail-wr0-f174.google.com) (209.85.128.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 04 Jan 2018 09:53:47 +0000 Received: by mail-wr0-f174.google.com with SMTP id w68so952360wrc.10 for ; Thu, 04 Jan 2018 01:53:47 -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=z+haa5eY2sQIcP0DgEolWgOikQOOZHv8O8M5HmLVrqQ=; b=BT+yirGRe3v2R9rGlNDlLN/ts03ydI91DX/M1F+HD3vQ5GFf2THqVBmfcsPsAxvxlf glYP7j4Q405sgOHH+9CgTkaattA3xXUz4iFPH1h0bvc9glXORa5xZXNztX8c+P+baiUc CD/H+v0irU2Z0o/YEkHorsdRHr/sTGoSvFZRiDoUBX41njuoLZJEFDN+77BocS1mdaNW vwlqYdXljgN1Jv+XGu/HAFk8YaHYd1WKUZI6+mD5ZgUpMrzSPCkHG+J4SpZ2lAiT9zYJ IA6fn+/7j4OFn40j4mlK8bY/9JCpm1GAiLCJk/PDBGxXGYq7hqfjZ8eggkUPqUuh9PJe uLUQ== X-Gm-Message-State: AKGB3mJgBrrqWLYLTXwsHPi5MxvqMmmwg4ajDmipgjtxa+5q3xLfztRS nQq7h78dTvMjS8OuEcKAbRoZ7vXRCgo= X-Received: by 10.223.130.36 with SMTP id 33mr3957263wrb.131.1515059625684; Thu, 04 Jan 2018 01:53:45 -0800 (PST) Received: from localhost ([95.144.14.233]) by smtp.gmail.com with ESMTPSA id f132sm2272972wmf.17.2018.01.04.01.53.44 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Jan 2018 01:53:45 -0800 (PST) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@linaro.org Subject: PR83675: Restore TARGET_VIS2 check for SPARC vec_perm_const Date: Thu, 04 Jan 2018 09:53:44 +0000 Message-ID: <87shbmhrvb.fsf@linaro.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 I'd missed a TARGET_VIS2 condition when replacing vec_perm_const_optab with TARGET_VECTORIZE_VEC_PERM_CONST in r256093. Tested by Rainer on sparc-sun-solaris* (thanks) and installed as obvious. Sorry the dumb mistake. Richard 2018-01-04 Richard Sandiford gcc/ PR target/83675 * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Require TARGET_VIS2. Index: gcc/config/sparc/sparc.c =================================================================== --- gcc/config/sparc/sparc.c 2018-01-03 11:12:52.995870490 +0000 +++ gcc/config/sparc/sparc.c 2018-01-03 22:30:11.728666687 +0000 @@ -12824,6 +12824,9 @@ sparc_expand_vec_perm_bmask (machine_mod sparc_vectorize_vec_perm_const (machine_mode vmode, rtx target, rtx op0, rtx op1, const vec_perm_indices &sel) { + if (!TARGET_VIS2) + return false; + /* All permutes are supported. */ if (!target) return true;