aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/UpdateTestChecks/common.py
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2024-05-18 22:50:19 +0100
committerGitHub <noreply@github.com>2024-05-18 22:50:19 +0100
commit4c98f5b439ddd204d8ff1e423104215ebd0e1720 (patch)
tree1211b15d9d675d89d72f84eb64810a90524d9567 /llvm/utils/UpdateTestChecks/common.py
parentba8a2ade84f4c1bfc531fe3673470377c038f31d (diff)
downloadllvm-4c98f5b439ddd204d8ff1e423104215ebd0e1720.zip
llvm-4c98f5b439ddd204d8ff1e423104215ebd0e1720.tar.gz
llvm-4c98f5b439ddd204d8ff1e423104215ebd0e1720.tar.bz2
[DAG] Use copysign in frem power-2 fold. (#91751)
As a small addition to #91148, this uses copysign to produce the correct sign for zero when converting frem to div/trunc/mul when we do not know that the input is positive (and we care about sign bits). The copysign lets us get the sign of zero correct. In testing, the only case this produced different results than fmod was: frem -inf, 4.0 -> nan vs -nan
Diffstat (limited to 'llvm/utils/UpdateTestChecks/common.py')
0 files changed, 0 insertions, 0 deletions