From patchwork Mon Sep 11 21:16:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 812634 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-461867-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="BAlR9CPg"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xrgjc3qsGz9s0Z for ; Tue, 12 Sep 2017 07:17:08 +1000 (AEST) 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:cc:subject:date:message-id; q=dns; s=default; b=aUI6+IxrxT/o kMSlmjbn3+TILu2oCR0uGSJFRlAbAJ5a6GfuLvBMn0bVPGyM0yk2DijsrR/oELue +XuVN3ro+KoRjBHe5WgMLPlF+qqoYeoe2fcR3WycIoT7pONZlEcebga4v/q+krHY KqDp4EarQmV2/tGk2l0gyoCWWHdFORw= 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:cc:subject:date:message-id; s=default; bh=hJotaFYoPkDpkJfWzm wVW8rfe9I=; b=BAlR9CPguJQVGBJh7xAzaTgbPg1W3ZvyBewFTav2tE391yiL/b m+wQqVDgvF5oGnoyw2N09yY/62iKaV7b+6uPiVVTx0e/rG3PTiweKu4ORnw/EVKR asxk4fQuJ800+Zly/cZgLy4IQnCKHUlK8nOO4qQD84BztZFiq64xk1NTY= Received: (qmail 49562 invoked by alias); 11 Sep 2017 21:17:00 -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 49552 invoked by uid 89); 11 Sep 2017 21:17:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.4 required=5.0 tests=BAYES_00, FREEMAIL_FROM, FROM_LOCAL_NOVOWEL, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, HK_RANDOM_ENVFROM, HK_RANDOM_FROM, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:668, H*r:sk:41.2017 X-HELO: mail-lf0-f66.google.com Received: from mail-lf0-f66.google.com (HELO mail-lf0-f66.google.com) (209.85.215.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 11 Sep 2017 21:16:59 +0000 Received: by mail-lf0-f66.google.com with SMTP id l196so4500187lfl.3 for ; Mon, 11 Sep 2017 14:16:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=4y2KKqhuzX4hoXOLi8lh4iW/TnUBSC9cEiQT4opHwbM=; b=YrCeNMRgQtW3xKh+3BtrTYXX6GcvYJ9PBlOSFN2edlicPY+yAd2TQ89cIIhEMUKJsg w/z/nt83zuDDQH3ZqoUoxgMFT6S3FgMRZ4i4NLgi7JiV696jw1p93UaTX5/6ggwFyunx gFiyRk5TyiF99cAwXsPlMXgR3XD2PndVo5R9Z56D1dy+liYRaShB3WF6oyuBrWDzoICM 1GeQ3NfOAL1JNNL+2FhPMe8LuJfgh+npbUex/1mevcmTijWS4MLmeBc2tMGtTQofYMY2 0hRd7nZRqLIwVBrCOsLS345duSD2u9VM97ugG8krCC2uhcLeR+4qc8siIKrK8ERzeP8j QwGg== X-Gm-Message-State: AHPjjUh5Bopr3KGMpT7ZHRKB/GxkORxYhe1ruoSoMlfg1azwROs3ZmHj nLEsQWPTEYtlQSIA X-Google-Smtp-Source: AOwi7QATWl+SRYiJDNbs/KpjnW0fh76BZWWeLECGItTSM7mezTnyHG/0RURWS8wKbkqQnXNufUERVw== X-Received: by 10.25.79.8 with SMTP id d8mr4002183lfb.118.1505164616775; Mon, 11 Sep 2017 14:16:56 -0700 (PDT) Received: from octofox.com (jcmvbkbc-1-pt.tunnel.tserv24.sto1.ipv6.he.net. [2001:470:27:1fa::2]) by smtp.gmail.com with ESMTPSA id b22sm1723364lfh.41.2017.09.11.14.16.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Sep 2017 14:16:56 -0700 (PDT) From: Max Filippov To: gcc-patches@gcc.gnu.org Cc: linux-xtensa@linux-xtensa.org, Sterling Augustine , Max Filippov Subject: [PATCH] xtensa: fix PR target/82181 Date: Mon, 11 Sep 2017 14:16:43 -0700 Message-Id: <1505164603-25715-1-git-send-email-jcmvbkbc@gmail.com> X-IsSubscribed: yes 2017-09-11 Max Filippov gcc/ * config/xtensa/xtensa.c (xtensa_mem_offset): Check that both words of E_DImode object are reachable by xtensa_uimm8x4 access. --- gcc/config/xtensa/xtensa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index f7ce08478aa2..0f84cf3a7a04 100644 --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c @@ -615,6 +615,7 @@ xtensa_mem_offset (unsigned v, machine_mode mode) case E_HImode: return xtensa_uimm8x2 (v); + case E_DImode: case E_DFmode: return (xtensa_uimm8x4 (v) && xtensa_uimm8x4 (v + 4));