[Bug target/110643] aarch64: Miscompilation at O1 level (O0 is working)

malat at debian dot org gcc-bugzilla@gcc.gnu.org
Thu Jul 13 06:34:44 GMT 2023


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

--- Comment #5 from Mathieu Malaterre <malat at debian dot org> ---
> We are going to need a self contained testcase to figure this out ...

You are not going to like it. Anyway here it goes:

[using Debian sid/arm64]
$ git clone https://github.com/google/highway.git
$ export CXX=-O1
$ export CXXFLAGS=g++-13
$ cmake -S highway -B build -DHWY_SYSTEM_GTEST=ON
$ cmake --build build -- -j8 math_test
$ ctest --test-dir build -R
HwyMathTestGroup/HwyMathTest.TestAllAtan2/NEON_WITHOUT_AES

I can provide the *.ii file if needed.


More information about the Gcc-bugs mailing list