From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by sourceware.org (Postfix) with ESMTPS id A9CE5385559B for ; Wed, 17 May 2023 21:49:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A9CE5385559B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-52c30fa5271so691074a12.0 for ; Wed, 17 May 2023 14:49:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684360174; x=1686952174; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=n7lkdL6/idWu44TnwW7PNtoqRCM8jO8aEGwUrNJkjAg=; b=Q+uSnCUn1OVVJjbXsDwaqOtSJp2XdYSfn1+dLNashvtLbehXTVUJEh9zVJwGItj9T2 19yFmw1d+WP9RvGCLr8URhJrC4MHuOAGSrk+165wFHNRcqrCwo7tkNta3euem7YDFfcy H3OH7N3KDrIQCzhxx8pbd0A5priNRTRJpPSi6hkpsINYvLMK4pAzD7YOpxGGPNv0Isj5 03ItLIbt7Z1SgJ0veWVt/fe09H7zCeUb2O3xhjGr+yEfyp9QRGlPcTLHAlQGFmeG0EaC nPFxj8bMR4eGBGmO1ezvvc/xIpWUCaQdFanqyWAryx2i28HObV9yfjiuBdBeQgqR9/yr TArg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684360174; x=1686952174; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=n7lkdL6/idWu44TnwW7PNtoqRCM8jO8aEGwUrNJkjAg=; b=LcmdpvFUszlGRYeMaE44H455uwAZVgsEMwjJrsGV7bSJolfvlf5WlY4tMW87q8ErYX 2JuYSM81CX1g3TOo3GMHwRgMQhtqq9PLVzxiTfjPfAqp6OSeIeuU4rHxHYlre/Kdul5r 1pvTo60ZMlyp/U7RMeORO7/RlQtIgVJwcJhZHQ6GmYohy0KBPZyMXU6+6zgIcY7hskuV 6uI3YlXt/TcVYEhleSbskZO+R//crcoWBIqH+yuXt4AHzdECOoafqAhtb8i5VPyhRyjp Vy1xQyFoETLATdCh9GKVEkfvAhcHVsyfB6ESRYWpNwPRNVGLHsORN/4iZHYM1ACmrrtv yB3Q== X-Gm-Message-State: AC+VfDwcoJEye9lqAzOikCk/IKhUYjcY53wnvcq2EhF2IDqByGuBEh2k wScWPJDCpFlsGeNRkq8KsoE= X-Google-Smtp-Source: ACHHUZ6VSO71zJakaCPr9yExJnTogQdO/eNt3QB+7CpIqeowLXg6ToOywJm1RP+3cnulvSOCy4q0Yw== X-Received: by 2002:a17:903:24e:b0:1ae:32db:d6c3 with SMTP id j14-20020a170903024e00b001ae32dbd6c3mr269012plh.41.1684360174488; Wed, 17 May 2023 14:49:34 -0700 (PDT) Received: from ?IPV6:2607:fb90:461:5e86:7cc0:9d3:e8af:b99e? ([2607:fb90:461:5e86:7cc0:9d3:e8af:b99e]) by smtp.gmail.com with ESMTPSA id x10-20020a170902ec8a00b001ac40488620sm1602324plg.92.2023.05.17.14.49.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 May 2023 14:49:33 -0700 (PDT) Message-ID: Date: Wed, 17 May 2023 15:49:31 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH] Fix type error of 'switch (SUBREG_BYTE (op)).' Content-Language: en-US To: Jin Ma , gcc-patches@gcc.gnu.org Cc: jinma.contrib@gmail.com References: <20230517090315.795-1-jinma@linux.alibaba.com> From: Jeff Law In-Reply-To: <20230517090315.795-1-jinma@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A,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 List-Id: On 5/17/23 03:03, Jin Ma wrote: > For example: > (define_insn "mov_lowpart_sidi2" > [(set (match_operand:SI 0 "register_operand" "=r") > (subreg:SI (match_operand:DI 1 "register_operand" " r") 0))] > "TARGET_64BIT" > "mov\t%0,%1") > > (define_insn "mov_highpart_sidi2" > [(set (match_operand:SI 0 "register_operand" "=r") > (subreg:SI (match_operand:DI 1 "register_operand" " r") 1))] > "TARGET_64BIT" > "movh\t%0,%1") > > When defining the above patterns, the generated file insn-recog.cc will > appear 'switch (SUBREG_BYTE (op))', but since the return value of > SUBREG_BYTE is poly_uint16_pod, the following error will occur: > "error: switch quantity not an integer". > > gcc/ChangeLog: > > * genrecog.cc (print_nonbool_test): Fix type error of > 'switch (SUBREG_BYTE (op))'. Thanks. Installed. jeff