From patchwork Sat Aug 6 19:41:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 56582 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 433A6385BAF0 for ; Sat, 6 Aug 2022 19:42:10 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by sourceware.org (Postfix) with ESMTPS id B870C3858430 for ; Sat, 6 Aug 2022 19:41:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B870C3858430 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-oi1-x233.google.com with SMTP id c185so6167975oia.7 for ; Sat, 06 Aug 2022 12:41:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=to:from:cc:content-transfer-encoding:mime-version:message-id:date :subject:from:to:cc; bh=n83aoXmwZZiVMHFuYtOM2fyS+EIJTxpYqs5AQHLcypE=; b=2NkIZlLTfb0YJBLEvbRgcf+Qz7YYrZvUlMWGP2PCfbXTJ/fF0d1yBAoTMMbUUCxRoz b1i5Yh5nIA4uuFjQeLzySPD6tpxs0f/VYa4KgAKNYmVwnHoBMvd09plD+paFlTlJpJ0M H7fZrJrol6j5RPagyNOy3ZgqwKUZC2InsEg81ZrlFM9m87DSphm9YNSlTB27/I2pPhVx QhlPP1DNi1po/PuAEqtUMtefykezvVQSuOrP5AlrfwQLpIF+F3JdpzOKr/cTC1/fLlRt rRxOvOO6Rvh4kOi/2wN+diWylClElLHF/HA2WvGpki23atonbT4RQo1kBubvsnR8aEpw 9T7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:cc:content-transfer-encoding:mime-version:message-id:date :subject:x-gm-message-state:from:to:cc; bh=n83aoXmwZZiVMHFuYtOM2fyS+EIJTxpYqs5AQHLcypE=; b=oUS6S98Lxi+tZk3gE9QvD4vIFHkdB2cBpFgRVc87GW4vEaQoGOnmv3EkSGE1Z4Zp8S t1Jj9YLVKyzjJ6WboZGe5PvsmsSrv70J7fWVjgDqiX7t9TdOWjGjkZ6fqoGiZ9iM4Ez7 gY9hTcTImL9Gs75aQD6uYva5hWQZJHc+t1gs+DT9okjGfZHiArTH4rKQUq5GJ8+0tVnR 3aogcEeeegEbAoPNtT7jkUkwsbv46fCyR6t//1RQf/h79Y2nE537bjDhz51kGFGbptZs GMTm8IkMOqsxpK3ozEK1EF0dAHVINhAF8UUgdTSdqzug1GO1rcQNCzGLSq2TT5vcRnRj WoVA== X-Gm-Message-State: ACgBeo1HBx1EU9xYpOH4QLdUjhSP+PfrYSVLq957jcBDOnz2xPAmo6kG s3v6/yRmHjL3SozyntBy9q6nEakNwMldaQ== X-Google-Smtp-Source: AA6agR7a+2BK7UV+vxZz+3pnsCp0hwJQfSqlUWSwJiLsBTtdUdpN29xotSaP5+Uz4ora4yIxqM3dRw== X-Received: by 2002:a17:90b:4a06:b0:1f4:e4fc:91ed with SMTP id kk6-20020a17090b4a0600b001f4e4fc91edmr14016384pjb.152.1659814903287; Sat, 06 Aug 2022 12:41:43 -0700 (PDT) Received: from localhost ([50.221.140.186]) by smtp.gmail.com with ESMTPSA id i11-20020a17090332cb00b0016d1b708729sm5458398plr.132.2022.08.06.12.41.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Aug 2022 12:41:42 -0700 (PDT) Subject: [PATCH] RISC-V: Fix the sge ..., x0, ... pattern Date: Sat, 6 Aug 2022 12:41:23 -0700 Message-Id: <20220806194122.19633-1-palmer@rivosinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 From: Palmer Dabbelt To: gcc-patches@gcc.gnu.org X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" There's no operand 2 here, so referencing it doesn't make sense. I couldn't find a way to trigger bad assembly output so I don't have a test. gcc/ChangeLog PR target/106543 * config/riscv/riscv.md (sge_): Remove reference to non-existent operand. --- No new failures on the Linux multilibs on trunk. --- gcc/config/riscv/riscv.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/riscv/riscv.md b/gcc/config/riscv/riscv.md index 0796f91dd30..ed1c7f241e6 100644 --- a/gcc/config/riscv/riscv.md +++ b/gcc/config/riscv/riscv.md @@ -2386,7 +2386,7 @@ (any_ge:GPR (match_operand:X 1 "register_operand" " r") (const_int 1)))] "" - "slt%i2\t%0,zero,%1" + "slt\t%0,zero,%1" [(set_attr "type" "slt") (set_attr "mode" "")])