public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/107243] New: ice in arithmetic_instr, at config/arm/arm.cc:2089
@ 2022-10-13  6:32 dcb314 at hotmail dot com
  2022-10-13  6:38 ` [Bug target/107243] " pinskia at gcc dot gnu.org
  2022-11-15 21:38 ` [Bug target/107243] ice in arithmetic_instr with invalid inline-asm and %I dcb314 at hotmail dot com
  0 siblings, 2 replies; 3+ messages in thread
From: dcb314 at hotmail dot com @ 2022-10-13  6:32 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107243
           Summary: ice in arithmetic_instr, at config/arm/arm.cc:2089
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

On machine type arm-linux-gnueabihf, this code 

void gdbstub_write_word(void) {
  int val = 0;
  void *addr = 0;
  unsigned long brr;
  asm volatile("        movgs   gr0,brr \n"
               "        sth%I2  %1,%M2  \n"
               "        movsg   brr,%0  \n"
               : "=r"(brr)
               : "r"(val), "m"(*addr));
}

does this:

during RTL pass: final
q.i: In function 'gdbstub_write_word':
q.i:9:1: internal compiler error: in arithmetic_instr, at
config/arm/arm.c:20612
    9 | }
      | ^

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug target/107243] ice in arithmetic_instr, at config/arm/arm.cc:2089
  2022-10-13  6:32 [Bug target/107243] New: ice in arithmetic_instr, at config/arm/arm.cc:2089 dcb314 at hotmail dot com
@ 2022-10-13  6:38 ` pinskia at gcc dot gnu.org
  2022-11-15 21:38 ` [Bug target/107243] ice in arithmetic_instr with invalid inline-asm and %I dcb314 at hotmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-10-13  6:38 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2022-10-13
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
static void
arm_print_operand (FILE *stream, rtx x, int code)
{
  switch (code)
    {
...
    case 'I':
      fprintf (stream, "%s", arithmetic_instr (x, 0));
      return;


...
const char *
arithmetic_instr (rtx op, int shift_first_arg)
{
  switch (GET_CODE (op))
    {
...
    default:
      gcc_unreachable ();
    }
}

The gcc_unreachable here should rather be a call to output_operand_lossage

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug target/107243] ice in arithmetic_instr with invalid inline-asm and %I
  2022-10-13  6:32 [Bug target/107243] New: ice in arithmetic_instr, at config/arm/arm.cc:2089 dcb314 at hotmail dot com
  2022-10-13  6:38 ` [Bug target/107243] " pinskia at gcc dot gnu.org
@ 2022-11-15 21:38 ` dcb314 at hotmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: dcb314 at hotmail dot com @ 2022-11-15 21:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from David Binderman <dcb314 at hotmail dot com> ---
Nothing has happened on this for over a month.

The bug still exists in current sources.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-11-15 21:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-13  6:32 [Bug target/107243] New: ice in arithmetic_instr, at config/arm/arm.cc:2089 dcb314 at hotmail dot com
2022-10-13  6:38 ` [Bug target/107243] " pinskia at gcc dot gnu.org
2022-11-15 21:38 ` [Bug target/107243] ice in arithmetic_instr with invalid inline-asm and %I dcb314 at hotmail dot com

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).