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

--- Comment #3 from liu zhenyu <lzy20000419 at outlook dot com> ---
(In reply to Andreas Schwab from comment #1)
> Are you sure about the correct output?

Yes. The test case from comment 0 prints f3b3a3e5eb0808b3 with x86-64 gcc at
-O0 through -Os (clean under -fsanitize=undefined,address), and with
m68k-linux-gnu gcc at -O0, -O1, -Os, -O2 -mlra and -O2 -mcpu=68020 under
qemu-m68k. The result does not depend on endianness or struct layout.

On current trunk I get cd63b94a3f38adc0 at -O2 -m68000 -mno-lra and
f3b3a3e5eb0808b3 at -O2 -m68000 -mlra, so I cannot reproduce your two hashes. I
don't have native m68k hardware, and my binaries are linked against Debian's
m68k gcc 14 libgcc rather than a freshly built one. Could you post what -O0
-m68000 prints on your setup, and confirm that pr129019.c is the code from
comment 0?

Reply via email to