From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1306F3851C1B; Fri, 22 May 2020 03:38:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1306F3851C1B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1590118733; bh=CdLSMuDJAIBOyAC08ejOaksK1nn+XNDVqeaK9chhun0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kYrnybwsk2U71k5EuKJqXfG4Yu68FuCODHG0J/ofIit/A1ergNx+yP0GI47uAyknt pHLNGFMEAXXHczSq1Nd1PcVPA8KVABdT0Kt3bBFT0+l/fVZyS+cewVZQ8LHvNqh/Nn hliQhFmeLYU0KHI9Sz69Y21CbHGtsgpYkKwtJWuo= From: "xuemaosheng at huawei dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/95267] [ICE][gcse]: in process_insert_insn at gcse.c Date: Fri, 22 May 2020 03:38:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: xuemaosheng at huawei dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 May 2020 03:38:53 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95267 --- Comment #2 from otcmaf --- (In reply to Andrew Pinski from comment #1) > I think this is a back-end issue. > Can you provide the definition of movtv8hf16 ? > I don't think you can do: > (set (match_operand 0 predicate constraint) > (unspec:V8HF16 [ > (match_operand 1 predicate constraint) > (match_operand 2 predicate constraint) > (match_dup 0) > ] UNSPEC_MOVTVFM))) >=20 > Rather you need to do: > (set (match_operand 0 predicate constraint) > (unspec:V8HF16 [ > (match_operand 1 predicate constraint) > (match_operand 2 predicate constraint) > (match_operand 3 predicate "0") > ] UNSPEC_MOVTVFM))) we use this definition of movtv8hf16: (define_insn "movtv8hf16"=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 [(set (match_operand:V8HF16 0 "register_operand_s" "+Zrv")=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 (unspec:V8HF16 [(match_operand:V8HF16 1 "register_operand_s" "Zrv")= =20=20=20=20=20 (match_operand:BF8 2 "register_operand_s" "Zrb")=20= =20=20=20=20=20=20=20 (match_dup 0)]UNSPEC_MOVTVFM))] why we can't use (match_dup 0) ?=