aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorJan Philipp Hafer <jan.hafer@rwth-aachen.de>2021-12-12 22:25:29 +0100
committerAndrew Kelley <andrew@ziglang.org>2021-12-27 14:35:45 -0800
commit17046674a745faaa34cf2646b9cf43455b12aba9 (patch)
tree0826d357cbfedea2e0b5309b1316b2ea731d1dbf /src/codegen
parent70894d5c2f6032b0d0be1fa00a30554b7e6db2d6 (diff)
downloadzig-17046674a745faaa34cf2646b9cf43455b12aba9.tar.gz
zig-17046674a745faaa34cf2646b9cf43455b12aba9.zip
compiler_rt: add __negvsi2, __negvdi2, __negvti2
- neg can only overflow, if a == MIN - case `-0` is properly handled by hardware, so overflow check by comparing `a == MIN` is sufficient - tests: MIN, MIN+1, MIN+4, -42, -7, -1, 0, 1, 7.. See #1290
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions