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

            Bug ID: 90724
           Summary: ICE with __sync_bool_compare_and_swap with
                    -march=armv8.2-a+sve
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: prathamesh3492 at gcc dot gnu.org
  Target Milestone: ---

Following test (pr82096.c) and few others fail with following ICE with 
-march=armv8.2-a+sve that contain call to __sync_bool_compare_and_swap:

static long long AL[24];

int
check_ok (void)
{
  return (__sync_bool_compare_and_swap (AL+1, 0x200000003ll, 0x1234567890ll));
}

pr82096.c: In function 'check_ok':
pr82096.c:11:1: error: unrecognizable insn:
   11 | }
      | ^
(insn 11 10 12 2 (set (reg:CC 66 cc)
        (compare:CC (reg:DI 95)
            (const_int 8589934595 [0x200000003]))) "pr82096.c":10:11 -1
     (nil))
during RTL pass: vregs
pr82096.c:11:1: internal compiler error: in extract_insn, at recog.c:2310
0x64bb6e _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        ../../gcc/gcc/rtl-error.c:108
0x64bb8a _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        ../../gcc/gcc/rtl-error.c:116
0x64a58b extract_insn(rtx_insn*)
        ../../gcc/gcc/recog.c:2310
0xa28a45 instantiate_virtual_regs_in_insn
        ../../gcc/gcc/function.c:1605
0xa28a45 instantiate_virtual_regs
        ../../gcc/gcc/function.c:1975
0xa28a45 execute
        ../../gcc/gcc/function.c:2024

Thanks,
Prathamesh

Reply via email to