From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B71003858430; Tue, 19 Mar 2024 16:58:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B71003858430 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1710867530; bh=a1YNgqrCr+LVNlaB9sS63dEEmEAnGU/PvHVqgv6jBFQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=snMqQDFNkeLuVPvBeBQ2CrF9rNghxm6ARBe/i+ZjmRr9IdtE697fvX5KunVrphhIf u29J6xptcavw5XIyIOffGPNLg/Iy3iI1X7Frcze2crOkoJ7JBsoUWfyLZit4D0KVm7 l+qlOhwjjFSeN0B/DjdJJiCu+V5vHOdV0w2aiDpI= From: "rdapp at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114396] [14] RISC-V rv64gcv vector: Runtime mismatch at -O3 with -fwrapv Date: Tue, 19 Mar 2024 16:58:50 +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: rdapp 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: cf_gcctarget 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=3D114396 Robin Dapp changed: What |Removed |Added ---------------------------------------------------------------------------- Target|riscv*-*-* |x86_64-*-* riscv*-*-* --- Comment #2 from Robin Dapp --- At first glance it doesn't really look like a target issue. Tried it on x86 and it fails as well with -O3 -march=3Dnative pr114396.c -fno-vect-cost-model -fwrapv short a =3D 0xF; short b[16]; int main() { for (int e =3D 0; e < 9; e +=3D 1) b[e] =3D a *=3D 0x5; if (a !=3D 2283) __builtin_abort (); }=