From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 510D4385841C; Tue, 9 Apr 2024 07:22:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 510D4385841C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712647368; bh=I5CuV7tGucZC9Ybu1NAsa126GUlyN4Ls/qdGyNUNgfw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XZa7+2llYtp0uSC1KQ/9WbmML4m5MvL7245U6iDgn8u/I9ttzMw5p01pe6fDvryvg 9dMLbo2g3HQ0Rklycm7TsMr3UpLZul0jjG2LP3a7TBvRODKWuTfFV0QW1AWNEWzySD IygeGloEa7iXEsaDKmAvRIPDVp9JFZbuY93FfMYY= From: "pan2.li at intel dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114639] [riscv] ICE in create_pre_exit, at mode-switching.cc:451 Date: Tue, 09 Apr 2024 07:22:47 +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: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pan2.li at intel dot com X-Bugzilla-Status: NEW 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114639 --- Comment #8 from Li Pan --- Find an even simpler code for reproduction. #include extern unsigned long get_vl (); vbool16_t test (vuint64m4_t a) { unsigned long b; return __riscv_vmsne_vx_u64m4_b16 (a, b, get_vl ()); } ../__RISC-V_INSTALL___RV64/bin/riscv64-unknown-elf-g++ -O3 -march=3Drv64gcv= -c ref.c -S -o - acc22d56e140220e7dc6c138918cb6754b6d1c0b enabled the vector abi by default,= and trigger this assert in create_pre_exit. Replace get_vl () with a local vari= able could bypass this issue. will continue to investigate.=