aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorKai Sasaki <lewuathe@gmail.com>2024-03-28 09:40:17 +0900
committerGitHub <noreply@github.com>2024-03-28 09:40:17 +0900
commitcb898e26f3321e0b861609f5fec7f7410e5b6778 (patch)
tree3f098851b5aae5c2f16f3f7aff87564571b7b9dd /clang/lib/CodeGen/CodeGenModule.cpp
parentbbfa50696e43f337f55f8bacf739683b181debd5 (diff)
downloadllvm-cb898e26f3321e0b861609f5fec7f7410e5b6778.zip
llvm-cb898e26f3321e0b861609f5fec7f7410e5b6778.tar.gz
llvm-cb898e26f3321e0b861609f5fec7f7410e5b6778.tar.bz2
[mlir] Make the print function in CRunnerUtil platform agnostic (#86767)
The platform running on Apple Silicon does not seem to support the negative nan. It causes the test failure where we explicitly specify the negative nan bit pattern and check the output printed by the CRunnerUtil function. We can make the print function in the utility platform agnostic by using the standard library functions (i.e. `std::isnan` and `std::signbit`) so that we can run the test across platforms that do not support the negative bit pattern. I have added two test cases that would fail in the Apple Silicon platform without print function changes. ``` $ uname -a Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:44 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6000 arm64 ``` See: https://discourse.llvm.org/t/test-failure-of-sparse-sign-test-in-apple-silicon/77876/3
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions