public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.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	[thread overview]
Message-ID: <bug-104028-4-ty1qnwFhdL@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-104028-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104028

--- Comment #11 from Martin Liška <marxin at gcc dot gnu.org> ---
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 = svpd_decode_t10_sg_fd;
  int pn = svpd_decode_t10_op_2;
  if (inhex_active)
    pn = 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=5208 -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

  parent reply	other threads:[~2022-01-17  9:40 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-14 10:22 [Bug c/104028] New: " giulio.benetti at benettiengineering dot com
2022-01-14 10:25 ` [Bug c/104028] " giulio.benetti at benettiengineering dot com
2022-01-14 10:25 ` giulio.benetti at benettiengineering dot com
2022-01-14 13:27 ` [Bug target/104028] " marxin at gcc dot gnu.org
2022-01-14 13:33 ` marxin at gcc dot gnu.org
2022-01-14 22:28 ` giulio.benetti at benettiengineering dot com
2022-01-14 22:28 ` giulio.benetti at benettiengineering dot com
2022-01-14 22:29 ` giulio.benetti at benettiengineering dot com
2022-01-14 22:30 ` giulio.benetti at benettiengineering dot com
2022-01-14 23:26 ` schwab@linux-m68k.org
2022-01-15  1:25 ` giulio.benetti at benettiengineering dot com
2022-01-17  9:40 ` marxin at gcc dot gnu.org [this message]
2022-01-17  9:40 ` marxin at gcc dot gnu.org
2022-01-22  1:11 ` [Bug target/104028] M68k: Error: value -16034 out of range for switch tables in some cases with optimization law at gcc dot gnu.org
2024-01-02 12:53 ` mikpelinux at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-104028-4-ty1qnwFhdL@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).