From patchwork Thu Dec 28 20:50:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 122876 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp3904432qgn; Thu, 28 Dec 2017 12:50:46 -0800 (PST) X-Google-Smtp-Source: ACJfBou5/mb6NObeQXNmuzCZml7iVGtAjvCQuUS8EjkuOP4OYnta5Lft0EVhgYZkOMbqM4OWFSWC X-Received: by 10.99.53.71 with SMTP id c68mr28459780pga.165.1514494246051; Thu, 28 Dec 2017 12:50:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514494246; cv=none; d=google.com; s=arc-20160816; b=wGQ6GuR8QSSmIzBZ/BMtaPDn0QImh9QxXP9NefRBBeOGMlr9wAyAc1UTSVDrHMFjSQ pUPw115rds9G2A72tETmrljYkr5KgAR9D15/FhZxUuyNUpBYtUDMxOcQ57qipu0xSBwX RZ9urUc0ZDODuSCh1XqXsoONN+IJ0J8JEMUibqA87cxtHSmgWY+vZOFeQv/LjSBlDN0W jMV0G9jBk1k+udIjdFvVDxZI9Wro6Q/oOpU+GIICHa/gSjd1k8QdqXO4/YilL8czV9N6 VSOzFWI9I2BRAkCHTN+y4RW972+vU6YAQdRVKX/evhZzR/EPiTKfR6pXjWItLPodOdnf VUuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:message-id:in-reply-to:date:references :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=08drPtYopKNHNDw97OKDXdCbcTmdHgRmvlS6+1IM9qs=; b=YrftsV0QJsbJ2NObpJPCZrc9EdaN6u5+ET/0+uCkUxEbU8Ipo79Lec/jLNrosFZN1t 2rFnESB7ykWysKdz9UgikLUBu5VH52o1UuI/ug0UDruuj0Gsc9rYAdQCE0eZXCqZRZ7w scRyK6hbUf3NFy0/2QmnUMXMIX7qvGlfsGgZFNzYM0NDPC2Qs5qFEwj8CadBDhnlqXZR 7uRqCLEypdJUxSVaaUXLT9XvX6lowPX2QCcNdECWI+EKM6YZrLZisbGFjyJWPVd7SKLt DjSCzpsGJHG+hCRcU1kW896C1wem/b3tkzzu46FWOJkuuMAJrYMqKu5nmaEkvBtTwk9B kRbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=k8HRHym5; spf=pass (google.com: domain of gcc-patches-return-469871-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-469871-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 l14si4203472pgu.265.2017.12.28.12.50.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Dec 2017 12:50:46 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-469871-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=k8HRHym5; spf=pass (google.com: domain of gcc-patches-return-469871-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-469871-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:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=default; b=fBMYPpO17bjB2JfTdZLIBJFuoFEdR QkDCAQtOEY3cvimfOj7XX6IyPEfOFE1Alr5DwdBmVZWffA8gRgOBBOWBRFlkn6WW 1cNR60hFXl5EpEJd7s8oNRfP0Fg4ybEQuFaYd8TFJNyMBR4rIGvjLaDfnRZCUa8F OtElQVqUSwjrVM= 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:references:date:in-reply-to:message-id:mime-version :content-type; s=default; bh=cMUThc1zbmimbvuXqgpObvSoW3w=; b=k8H RHym5mnBh/f4fe1Q5i63BsNysaWH3dxtDh8D0+FG0JAK+3q8rvow8PniADHzYA21 uGDjWxaQyITF3i/MzvnusDAf9r5xFgtSVmI4tEGEhsrADrU22uu7U/F4UpYvZXhU wdDimIU3W8avEdiGejC1sEDEiKKbIiDwNc1TPhw0= Received: (qmail 41976 invoked by alias); 28 Dec 2017 20:50:35 -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 41966 invoked by uid 89); 28 Dec 2017 20:50:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.6 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=H*i:sk:874loai, Hx-languages-length:1020, H*f:sk:874loai X-HELO: mail-wm0-f49.google.com Received: from mail-wm0-f49.google.com (HELO mail-wm0-f49.google.com) (74.125.82.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 28 Dec 2017 20:50:34 +0000 Received: by mail-wm0-f49.google.com with SMTP id f206so45349262wmf.5 for ; Thu, 28 Dec 2017 12:50:34 -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:references:date :in-reply-to:message-id:user-agent:mime-version; bh=08drPtYopKNHNDw97OKDXdCbcTmdHgRmvlS6+1IM9qs=; b=UXDzI3aT81p+j2KYSUtQVVT86ozhUYS9+L91IYFymEuYjyUWIGT63yRl6+Rf3dLSEy 117OXLO4Gy2XBwExLY4BPj+ZEe61WsJXHyTzflYArwfubpGwmpwesw18erC9Vu8j0Jfq +emmFJr2Cx1tsLxQ/MK1JOftcop/EfBaRmZQqt8lj6QBlX3Sn9XZiqMIP9WoMQ7/MW2s KhAhf7JVeA9IhXR1l7f8EidGv6xd+fNBikmm/2i/FdOUmtf10f1LN4cETBF7Akvge0eB t0OGsnriVs2eYDxDdNLd1o/huYPxnbHcsekXZKQjLkX30FV5puIGCLxZzXG7Sp0FYwTJ gFJw== X-Gm-Message-State: AKGB3mLs/cM3gF9t8eg1w+GxjJqRViq5zxFckfEvBJ341vj3nGF8lwYp p8SxTb4QyoT0K1FdUUNEYAf6JL2ylHc= X-Received: by 10.28.118.24 with SMTP id r24mr24729155wmc.7.1514494232101; Thu, 28 Dec 2017 12:50:32 -0800 (PST) Received: from localhost ([95.145.138.186]) by smtp.gmail.com with ESMTPSA id v198sm10020412wmv.39.2017.12.28.12.50.31 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Dec 2017 12:50:31 -0800 (PST) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@linaro.org Subject: [1/4] Use CONST_VECTOR_ELT instead of XVECEXP References: <874loainn7.fsf@linaro.org> Date: Thu, 28 Dec 2017 20:50:30 +0000 In-Reply-To: <874loainn7.fsf@linaro.org> (Richard Sandiford's message of "Thu, 28 Dec 2017 20:49:16 +0000") Message-ID: <87wp16h90p.fsf@linaro.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 This patch replaces target-independent uses of XVECEXP with uses of CONST_VECTOR_ELT. This kind of replacement isn't necessary for code specific to targets other than AArch64. 2017-12-28 Richard Sandiford gcc/ * simplify-rtx.c (simplify_const_binary_operation): Use CONST_VECTOR_ELT instead of XVECEXP. Index: gcc/simplify-rtx.c =================================================================== --- gcc/simplify-rtx.c 2017-12-21 18:36:04.778333159 +0000 +++ gcc/simplify-rtx.c 2017-12-22 13:08:49.287660877 +0000 @@ -4070,9 +4070,9 @@ simplify_const_binary_operation (enum rt gcc_assert (op0_n_elts + op1_n_elts == n_elts); for (i = 0; i < op0_n_elts; ++i) - RTVEC_ELT (v, i) = XVECEXP (op0, 0, i); + RTVEC_ELT (v, i) = CONST_VECTOR_ELT (op0, i); for (i = 0; i < op1_n_elts; ++i) - RTVEC_ELT (v, op0_n_elts+i) = XVECEXP (op1, 0, i); + RTVEC_ELT (v, op0_n_elts+i) = CONST_VECTOR_ELT (op1, i); } return gen_rtx_CONST_VECTOR (mode, v);