https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126927
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Component|target |testsuite
Status|UNCONFIRMED |NEW
Last reconfirmed| |2026-08-18
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
There are
static __attribute__((noipa, noinline))
void do_tests_0001 (long a, long b, long c, long d, long e)
{
long ret;
init_test (msabi_00_r5, "msabi_00_r5", ALIGNMENT_MISALIGNED,
SHRINK_WRAP_NONE, a + b + c + d + e);
__asm__ __volatile__ ("subq $8,%%rsp":::"cc");
ret = do_test_unaligned (a, b, c, d, e);
__asm__ __volatile__ ("addq $8,%%rsp":::"cc");
check_results (ret);
}
When compiler saves incoming parameters on stack and retrieves it from
stack before calling do_test_unaligned with -march=znver4, the wrong
value is passed to do_test_unaligned.