https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110744
--- Comment #2 from Li Pan <pan2.li at intel dot com> ---
Hi there,
Just try to reproduce this bug with powerPC cross compiler (sorry we don't have
a real powerPC) with the below options. Unfortunately, I failed to reproduce
this bug as above mentioned.
Could you please help to take a look if there is something missing or
incorrect?
1. Build cross compiler
../configure \
--target=powerpc-unknown-elf \
--prefix=${INSTALL_DIR} \
--disable-shared \
--enable-threads \
--enable-tls \
--enable-languages=c,c++ \
--with-system-zlib \
--with-newlib \
--disable-libmudflap \
--disable-libssp \
--disable-libquadmath \
--disable-libgomp \
--enable-nls \
--disable-tm-clone-registry \
--enable-multilib \
--src=`pwd`/../ \
--enable-werror \
make -j $(nproc) all-gcc && make install-gcc
2. Compile the source file.
>> ./bin/powerpc-unknown-elf-gcc -mcpu=power10 -O3 -fdump-tree-optimized -c -S
>> ../gcc/gcc/testsuite/gcc.dg/tree-ssa/pr84512.c -o -
.file "pr84512.c"
.machine power10
.section ".text"
.align 2
.align 4
.globl foo
.type foo, @function
foo:
.LFB0:
li 3,285
blr
.LFE0:
.size foo, .-foo
.section .eh_frame,"aw",@progbits
.Lframe1:
.4byte .LECIE1-.LSCIE1
.LSCIE1:
.4byte 0
.byte 0x3
.string ""
.byte 0x1
.byte 0x7c
.byte 0x41
.byte 0xc
.byte 0x1
.byte 0
.align 2
.LECIE1:
.LSFDE1:
.4byte .LEFDE1-.LASFDE1
.LASFDE1:
.4byte .LASFDE1-.Lframe1
.4byte .LFB0
.4byte .LFE0-.LFB0
.align 2
.LEFDE1:
.ident "GCC: (GNU) 14.0.0 20230720 (experimental)"
>> cat pr84512.c.257t.optimized
;; Function foo (foo, funcdef_no=0, decl_uid=3445, cgraph_uid=1,
symbol_order=0)
int foo ()
{
<bb 2> [local count: 97603129]:
return 285;
}