tcg/arm: Reduce vector alignment requirement for NEON
commitb9537d5904f6e3df896264a6144883ab07db9608
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 12 Sep 2021 17:49:25 +0000 (12 10:49 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 7 Dec 2021 14:32:09 +0000 (7 06:32 -0800)
treef11c867acbebe9315b18057ef616d23ac5d0ee7a
parent7635eff97104242d618400e4b6746d0a5c97af82
tcg/arm: Reduce vector alignment requirement for NEON

With arm32, the ABI gives us 8-byte alignment for the stack.
While it's possible to realign the stack to provide 16-byte alignment,
it's far easier to simply not encode 16-byte alignment in the
VLD1 and VST1 instructions that we emit.

Remove the assertion in temp_allocate_frame, limit natural alignment
to the provided stack alignment, and add a comment.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1999878
Reported-by: Richard W.M. Jones <rjones@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210912174925.200132-1-richard.henderson@linaro.org>
Message-Id: <20211206191335.230683-2-richard.henderson@linaro.org>
tcg/arm/tcg-target.c.inc
tcg/tcg.c