From patchwork Wed Apr 29 15:52:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 1279481 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gcc.gnu.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=aPe7k94y; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49C32M1QLdz9sP7 for ; Thu, 30 Apr 2020 01:53:15 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3EB9B3893652; Wed, 29 Apr 2020 15:53:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3EB9B3893652 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1588175591; bh=qWJp/z2igmxQj+6VNwiCZj1M8NL/9LRy+FPFzn2dMP4=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=aPe7k94y6WMnm/As70MEyRSIZwvJQW8moHO27RnQzD9Tl0jB7Fef9Mg5xmIGAc9Bh eF82L9FSz6zXvOt8DWAQLOnd0AD2+PNYWygXf3hcK/0GZ9FKoKrqP1q/hR560TpjhF sN3ez7xhjhwX7fgk8Bn9FJjxdSZOwyVVHmRyXdXM= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by sourceware.org (Postfix) with ESMTPS id B9B6B38930CB for ; Wed, 29 Apr 2020 15:52:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B9B6B38930CB Received: by mail-oi1-x22b.google.com with SMTP id t199so2218332oif.7 for ; Wed, 29 Apr 2020 08:52:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=qWJp/z2igmxQj+6VNwiCZj1M8NL/9LRy+FPFzn2dMP4=; b=sDC2IUGa7vfidM0IW63bdeE4pAliduL3We9oGem9uLSzEyyClUC6x3lhFl1+GthOwh um19VMrLpECU4ahE5HMfSNk7DMenj+kuZWkzOiMLDrAYjm4q/U7CHu4rczTXYx0lT3Fn Aa7kq3/iLMlsWgn7V4jaKDIHtxr7wRQOM9ScuN8VqjdrkmbtZ/7CzHgJ+m/8MPdD+ELo 2JuZu98c1bfHV8ROZDJZ6xe3IyiVOxmnSq3A4H7aEkdETz9DD/nrQBTyTa4GpsPBMwv3 usuXK+DhWFBJK2cRbQBQemMqRb8XJBuldR2hs7ciBr4O/0mHCsNd7p7gBTbHrUhd/ze+ LbCw== X-Gm-Message-State: AGi0PubpS/ax0MpQY3wgd2yechppisq4AR5150rgu+1FPnjhBPAPVJej UGiT0t+vw5NFLjw6Cd6GwavEc9hIBquPtku4ubCyMltjkwgnLw== X-Google-Smtp-Source: APiQypIz1Ia/Vn1Ho6LeimEaKpok0f1HofiHvl7JaNXoMH2lN1mGGQlmhcHzt3I1fRoLz7L+O6xw1Go3aqDaC3ZLNBY= X-Received: by 2002:aca:3a83:: with SMTP id h125mr2090862oia.64.1588175578697; Wed, 29 Apr 2020 08:52:58 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 29 Apr 2020 17:52:47 +0200 Message-ID: Subject: arm: Fix vfp_operand_register for VFP HI regs To: gcc Patches X-Spam-Status: No, score=-22.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Christophe Lyon via Gcc-patches From: Christophe Lyon Reply-To: Christophe Lyon Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" Hi, While looking at PR target/94743 I noticed an ICE when I tried to save all the FP registers: this was because all HI registers wouldn't match vfp_register_operand. Regression-tested and bootstrapped OK. 2020-04-29 Christophe Lyon gcc/ * config/arm/predicates.md (vfp_register_operand): Use VFP_HI_REGS instead of VFP_REGS. OK? Thanks, Christophe While looking at PR target/94743 I noticed an ICE when I tried to save all the FP registers: this was because all HI registers wouldn't match vfp_register_operand. 2020-04-29 Christophe Lyon gcc/ * config/arm/predicates.md (vfp_register_operand): Use VFP_HI_REGS instead of VFP_REGS. diff --git a/gcc/config/arm/predicates.md b/gcc/config/arm/predicates.md index 009862e..dbd4fb4 100644 --- a/gcc/config/arm/predicates.md +++ b/gcc/config/arm/predicates.md @@ -161,7 +161,7 @@ (define_predicate "vfp_register_operand" || REGNO_REG_CLASS (REGNO (op)) == VFP_D0_D7_REGS || REGNO_REG_CLASS (REGNO (op)) == VFP_LO_REGS || (TARGET_VFPD32 - && REGNO_REG_CLASS (REGNO (op)) == VFP_REGS))); + && REGNO_REG_CLASS (REGNO (op)) == VFP_HI_REGS))); }) (define_predicate "vfp_hard_register_operand"