Issue 91824
Summary Numerical error introduced using ARM64 using clang-14 but not clang-13
Labels new issue
Assignees
Reporter phargogh
    Hello!  I am experiencing an issue with clang on ARM64 (reproducible on M1 mac and Raspberry Pi 4B) where chaining a series of mathematical operations together introduces some numerical error.  I have a workaround where breaking some of the math onto a second line does not introduce the error.  I have tested this on a Raspberry Pi 4B and also on the following debian versions on my M1 mac:

- debian buster (arm64, gcc 8.3.0, clang 7.0.1, no numerical issue)
- debian bullseye (arm64, gcc 10.2.1, clang 11.0.1-2, no numerical issue)
- debian bookworm (arm64, gcc 12.2.0, clang 13.0.1, no numerical issue)
- debian bookworm (arm64, gcc 12.2.0, clang 14.0.6, numerical issue present)
- debian trixie (arm64, gcc 13.2.0, clang 16.0.6, numerical issue present)
- debian sid (arm64, gcc 13.2.0, clang 16.0.6, numerical issue present)

A minimal reproducible sample is here in this gist: https://gist.github.com/phargogh/c4264b37e7f0beed31661eacce53d14a

Thank you!
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to