From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 897C238460A2; Sun, 7 Mar 2021 00:29:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 897C238460A2 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/99437] [11 Regression] Error: immediate value out of range 1 to 8 at operand 3 -- `shrn v1.8b,v1.8h,15' Date: Sun, 07 Mar 2021 00:29:06 +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: 11.0 X-Bugzilla-Keywords: assemble-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on everconfirmed bug_status 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Mar 2021 00:29:06 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99437 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-03-07 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #3 from Andrew Pinski --- Trying 144, 146 -> 148: 144: r159:V8HI=3Dr165:V8HI 0>>const_vector REG_DEAD r165:V8HI 146: r155:V8QI=3Dtrunc(r159:V8HI) REG_DEAD r159:V8HI 148: r153:V16QI=3Dvec_concat(r155:V8QI,const_vector) REG_DEAD r155:V8QI Successfully matched this instruction: (set (reg:V16QI 153 [ _101 ]) (vec_concat:V16QI (truncate:V8QI (lshiftrt:V8HI (reg:V8HI 165 [ _113 ]) (const_vector:V8HI [ (const_int 15 [0xf]) repeated x8 ]))) (const_vector:V8QI [ (const_int 0 [0]) repeated x8 ]))) I have not reduced it yet but the above shows where the problem is introduc= ed inside combine. I think the constrants/predicates for aarch64_shrnv8hi_ins= n_le on the const_vect (shift) are incorrect.=