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

--- Comment #4 from Sebastian Huber <sebastian.hu...@embedded-brains.de> ---
(In reply to Sebastian Huber from comment #3)
> I get this error also for -mcpu=power3, ..., -mcpu=power10.

I get the ICE only in 32-bit mode, the 64-bit mode works:

powerpc-rtems6-gcc -O2 -mcpu=power10 -m64 -S test.c -dA -da -dp -o - 
        .file   "test.c"
        .machine power10
        .abiversion 2
        .section        ".text"
        .align 2
        .p2align 4,,15
        .globl __ieee754_fmod
        .type   __ieee754_fmod, @function
__ieee754_fmod:
.LFB0:
        .cfi_startproc
        .localentry     __ieee754_fmod,1
 # BLOCK 2, count:118111600 (estimated locally) seq:0
 # PRED: ENTRY [always]  count:118111600 (estimated locally) (FALLTHRU)
        mfvsrd 9,1       # 7    [c=4 l=4]  *movdi_internal64/25
        srdi 9,9,32      # 8    [c=4 l=4]  lshrdi3
        rldicr. 9,9,33,10        # 49   [c=4 l=4]  *rotldi3_mask_dot/0
 # SUCC: 4 [50.0% (guessed)]  count:59055800 (estimated locally) (CAN_FALLTHRU)
3 [50.0% (guessed)]  count:59055800 (estimated locally) (FALLTHRU,CAN_FALLTHRU)
        beq 0,.L2        # 50   [c=4 l=4]  *cbranch
 # BLOCK 3, count:118111600 (estimated locally) seq:1
 # PRED: 2 [50.0% (guessed)]  count:59055800 (estimated locally)
(FALLTHRU,CAN_FALLTHRU)
        xxlxor 1,1,1     # 22   [c=4 l=4]  *movdf_hardfloat64/8
 # SUCC: EXIT [always]  count:118111600 (estimated locally)
        blr              # 53   [c=4 l=4]  simple_return
 # BLOCK 4, count:0 (estimated locally) seq:2
 # PRED: 2 [50.0% (guessed)]  count:59055800 (estimated locally) (CAN_FALLTHRU)
4 [always]  count:0 (estimated locally) (DFS_BACK,CAN_FALLTHRU)
.L2:
 # SUCC: 4 [always]  count:0 (estimated locally) (DFS_BACK,CAN_FALLTHRU)
        b .L2            # 59   [c=4 l=4]  jump
        .long 0
        .byte 0,0,0,0,0,0,0,0
        .cfi_endproc
.LFE0:
        .size   __ieee754_fmod,.-__ieee754_fmod
        .ident  "GCC: (GNU) 13.0.1 20230424 (prerelease) [releases/gcc-13
f743863e09a]"
        .gnu_attribute 4, 9
        .section        .note.GNU-stack,"",@progbits

Reply via email to