From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DEC3E3858C41; Fri, 24 Nov 2023 11:59:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DEC3E3858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700827183; bh=Ng+XeDTFqLP3PTIcTj03wwHfCEO3YAUAYmGkH2ezJfo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=F0LhzKBpW0vpWgM5p9FLQjAAUtX45q/3ZZbP/bp/8p+Iy+azNtp0oFxg5ms0GYbuV 8YFhib7TK1xcvazbXB5ar4SDgp/frzWTBdV7Ox2siNFhP7KFzQbNARaxiqdpXf9rgz TMWMfE8YSmlCj7tyJYly85DlffqwK0cy4gXwY2rA= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109977] [14 Regression] ICE: output_operand: incompatible floating point / vector register operand for '%d' at -Og Date: Fri, 24 Nov 2023 11:59:42 +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: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D109977 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #4 from Jakub Jelinek --- I agree with the analysis and 2023-11-24 Andrew Pinski Jakub Jelinek * config/aarch64/aarch64-simd.md (aarch64_simd_stp): Use rather than % for alternative with r constraint on input operan= d. * gcc.dg/pr109977.c: New test. --- gcc/config/aarch64/aarch64-simd.md.jj 2023-11-22 22:55:20.5770757= 62 +0100 +++ gcc/config/aarch64/aarch64-simd.md 2023-11-24 12:51:22.855215700 +0100 @@ -269,7 +269,7 @@ (define_insn "aarch64_simd_stp" "TARGET_SIMD" {@ [ cons: =3D0 , 1 ; attrs: type ] [ Umn , w ; neon_stp ] stp\t%1, %1, %y0 - [ Umn , r ; store_ ] stp\t%1, %1, %y0 + [ Umn , r ; store_ ] stp\t%1, %1, %y0 } ) --- gcc/testsuite/gcc.dg/pr109977.c.jj 2023-11-24 12:51:04.551473591 +0100 +++ gcc/testsuite/gcc.dg/pr109977.c 2023-11-24 12:50:44.158760916 +0100 @@ -0,0 +1,16 @@ +/* PR target/109977 */ +/* { dg-do compile } */ +/* { dg-options "-Og" } */ + +typedef double __attribute__((__vector_size__ (8))) V; +typedef double __attribute__((__vector_size__ (16))) W; +V v; +int i; +extern void bar (void *); + +void +foo (void) +{ + W w =3D __builtin_shufflevector (v, (W) { }, 0, 0); + bar (&w); +} fixes it (though it will take me a while to find where to bootstrap/regtest this).=