public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/113033] New: GCC 14 (20231203 snapshot) ICE when building LSX vector rotate code on LoongArch
@ 2023-12-15 16:44 c at jia dot je
  2023-12-16 17:47 ` [Bug target/113033] " xry111 at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: c at jia dot je @ 2023-12-15 16:44 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113033
           Summary: GCC 14 (20231203 snapshot) ICE when building LSX
                    vector rotate code on LoongArch
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: c at jia dot je
  Target Milestone: ---

Source code:

```
#include <lsxintrin.h>

v2u64 test(v2u64 a, int imm) {
  return (a << (imm & 63)) | (a >> (64 - (imm & 63)));
}

```

Command line to reproduce:

```
gcc-14 -mlsx -c test.c
```

Error message:

```
test.c: In function ‘test’:
test.c:5:1: error: unrecognizable insn:
    5 | }
      | ^
(insn 16 15 17 2 (set (reg:DI 92)
        (and:DI (neg:DI (reg:DI 80 [ _1 ]))
            (const_int 63 [0x3f]))) "test.c":4:28 -1
     (nil))
during RTL pass: vregs
test.c:5:1: internal compiler error: in extract_insn, at recog.cc:2804
0x5555591d419f internal_error(char const*, ...)
        ???:0
0x5555577b4d87 fancy_abort(char const*, int, char const*)
        ???:0
0x5555577998bb _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        ???:0
0x5555577998ef _fatal_insn_not_found(rtx_def const*, char const*, int, char
const*)
        ???:0
0x5555580704f7 extract_insn(rtx_insn*)
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
```

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

end of thread, other threads:[~2023-12-27 11:05 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-15 16:44 [Bug target/113033] New: GCC 14 (20231203 snapshot) ICE when building LSX vector rotate code on LoongArch c at jia dot je
2023-12-16 17:47 ` [Bug target/113033] " xry111 at gcc dot gnu.org
2023-12-16 18:16 ` xry111 at gcc dot gnu.org
2023-12-16 18:32 ` xry111 at gcc dot gnu.org
2023-12-16 18:44 ` xry111 at gcc dot gnu.org
2023-12-16 20:11 ` [Bug middle-end/113033] " xry111 at gcc dot gnu.org
2023-12-16 21:35 ` xry111 at gcc dot gnu.org
2023-12-18 13:47 ` xry111 at gcc dot gnu.org
2023-12-18 20:17 ` [Bug target/113033] " xry111 at gcc dot gnu.org
2023-12-18 20:34 ` xry111 at gcc dot gnu.org
2023-12-20 12:02 ` cvs-commit at gcc dot gnu.org
2023-12-20 12:05 ` xry111 at gcc dot gnu.org
2023-12-27 11:05 ` xry111 at gcc dot gnu.org

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