From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ECA423858C20; Wed, 21 Feb 2024 02:39:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ECA423858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708483193; bh=1txDE2kPMMD7M8HDvIyWlfpktnSgeVB5cpuYVS0OI+0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=S2MvOX5t3elJzvTlPjNtkGzxwDAgiqTzP9DbCXSd81J7Ur+7AkbzmJZtiUBIqOz+O yKopbx9ppf7ihCmpRw4QcQRJGY6vLcJb/6OGYGnMostx2ozjHBf0+D94YrL8P0GH3q uil76ySPP9whXAc8MAqvkE1MDifex0n4q/XufA8Q= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114027] [14] RISC-V vector: miscompile at -O3 Date: Wed, 21 Feb 2024 02:39:53 +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: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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: --- 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=3D114027 --- Comment #2 from Andrew Pinski --- Works fine on aarch64 with SVE: ``` [apinski@xeond2 upstream-full-cross]$ ./install/bin/aarch64-linux-gnu-gcc -= O3 t6.c -static -march=3Darmv9-a+sve2 [apinski@xeond2 upstream-full-cross]$ ./install-qemu/bin/qemu-aarch64 a.out ;echo $? 0 [apinski@xeond2 upstream-full-cross]$ ./install/bin/aarch64-linux-gnu-gcc -= O3 t6.c -static -march=3Darmv9-a+sve2 -fno-vect-cost-model [apinski@xeond2 upstream-full-cross]$ ./install-qemu/bin/qemu-aarch64 a.out ;echo $? 0 ```=