From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DE07F3858425; Mon, 17 Jan 2022 09:40:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DE07F3858425 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/104028] M68k: Error: value -16034 out of range Date: Mon, 17 Jan 2022 09:40:34 +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: 10.3.0 X-Bugzilla-Keywords: assemble-failure, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: WAITING 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 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: Mon, 17 Jan 2022 09:40:35 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104028 --- Comment #11 from Martin Li=C5=A1ka --- Reduced test-case: $ cat pr104028.c # 1 "" 3 struct { _Bool do_force; int examine; int vpd_pn } svpd_decode_t10_op; svpd_decode_t10_sg_fd, svpd_decode_t10_op_1, svpd_decode_t10_op_2; svpd_decode_t10_rp() { _Bool inhex_active =3D svpd_decode_t10_sg_fd; int pn =3D svpd_decode_t10_op_2; if (inhex_active) pn =3D svpd_decode_t10_rp; if (!inhex_active && svpd_decode_t10_op_1) vpd_fetch_page(); switch (pn) { case 2: if (inhex_active) sg_ll_inquiry_v2(); case 181: vpd_fetch_page(); case 182: vpd_fetch_page(); case 183: vpd_fetch_page(); case 184: vpd_fetch_page(svpd_decode_t10_op); case 185: vpd_fetch_page(); } } $ m68k-suse-linux-gcc pr104028.c -c -mcpu=3D5208 -Os /tmp/cciKSGSl.s: Assembler messages: /tmp/cciKSGSl.s:77: Error: value -134 out of range /tmp/cciKSGSl.s:77: Error: value of ffffff7a too large for field of 1 byte = at 000000cf $ m68k-suse-linux-gcc pr104028.c --version m68k-suse-linux-gcc (SUSE Linux) 11.2.1 20220103 [revision d4a1d3c4b377f1d4acb34fe1b55b5088a3f293f6] we speak about the following instruction: 77 move.w .L18(%pc,%d2.l),%d0=