From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3CE0F3858C50; Sun, 9 Oct 2022 06:33:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3CE0F3858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665297198; bh=vmuv9464Qwx8X9mk+m2YGnsw6Grbnol4E97oRGOA8r8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MToxoQr4utuGqh05IZT8cf5IwX226XoxWpsHDj9ItfUpEtKGMDA0kOGLNh45zVC8U nVZMmEqhkSwBkQxzPyoZZX9C3Nw5ztA/8W9Qcper4ZBGYMyOmXEcQNELoS3FBf/8tQ iXnllLOXtl2MjIpUrDd5FCvMZSfe/io0a0289UXM= From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107185] [13 Regression] during RTL pass: vregs ICE: in extract_insn, at recog.cc:2791 (unrecognizable insn) with -ffast-math and lrintf() Date: Sun, 09 Oct 2022 06:33:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: crazylht at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107185 --- Comment #1 from Hongtao.liu --- Looks like there's mismatch between 20147(define_expand "lrint2" 20148 [(set (match_operand:SWI48 0 "nonimmediate_operand") 20149 (unspec:SWI48 [(match_operand:MODEF 1 "register_operand")] 20150 UNSPEC_FIX_NOTRUNC))] 20151 "SSE_FLOAT_MODE_P (mode) && TARGET_SSE_MATH") and 7770(define_insn "sse_cvtss2si_2" 7771 [(set (match_operand:SWI48 0 "register_operand" "=3Dr,r") 7772 (unspec:SWI48 [(match_operand:SF 1 "nonimmediate_operand" "v,m= ")] 7773 UNSPEC_FIX_NOTRUNC))] ... ... 8215(define_insn "sse2_cvtsd2si_2" 8216 [(set (match_operand:SWI48 0 "register_operand" "=3Dr,r") 8217 (unspec:SWI48 [(match_operand:DF 1 "nonimmediate_operand" "v,m= ")] 8218 UNSPEC_FIX_NOTRUNC))] 8219 "TARGET_SSE2" 8220 "%vcvtsd2si\t{%1, %0|%0, %q1}" Need to swap predicates for operands[0] and operand[1] of "lrint2"=