diff options
| author | Jan Philipp Hafer <jan.hafer@rwth-aachen.de> | 2021-12-12 22:25:29 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-12-27 14:35:45 -0800 |
| commit | 17046674a745faaa34cf2646b9cf43455b12aba9 (patch) | |
| tree | 0826d357cbfedea2e0b5309b1316b2ea731d1dbf /test/behavior/enum.zig | |
| parent | 70894d5c2f6032b0d0be1fa00a30554b7e6db2d6 (diff) | |
| download | zig-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 'test/behavior/enum.zig')
0 files changed, 0 insertions, 0 deletions
