[Diffusion] rGb53d44fe4741: [EarlyCSE][ConstantFolding] add tests for atan/atan2; NFC
Mohammed Nurul Hoque via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 10 08:14:07 PDT 2022
mohammed-nurulhoque added a comment.
This is the failing test
define float @callatan0() {
; CHECK-LABEL: @callatan0(
; CHECK-NEXT: [[CALL:%.*]] = call float @atanf(float -0.000000e+00)
; CHECK-NEXT: ret float -0.000000e+00
;
%call = call float @atanf(float -0.0)
ret float %call
}
The aix-ppc64 clang is producing `ret float 0.000000e+00` (+0.0 instead of -0.0). As per the quoted rule above from POSIX, the result should be -0.0.
BRANCHES
main
Users:
mohammed-nurulhoque (Author)
spatel (Committer)
https://reviews.llvm.org/rGb53d44fe4741
More information about the llvm-commits
mailing list