zig/test/behavior
xtex 4e32193de3
x86_64: implement integer saturating left shifting codegen
Simliarly to shl_with_overflow, we first SHL/SAL the integer, then
SHR/SAR it back to compare if overflow happens.
If overflow happened, set result to the upper limit to make it saturating.

Bug: #17645
Co-authored-by: Jacob Young <jacobly0@users.noreply.github.com>
Signed-off-by: Bingwu Zhang <xtex@aosc.io>
2025-03-02 10:30:32 +08:00
..
2025-02-22 00:05:47 -05:00
2025-02-03 09:14:37 +00:00
2025-01-16 20:42:08 -05:00
2024-06-16 11:53:33 +02:00
2024-06-13 02:24:39 -07:00
2024-05-11 02:17:24 -07:00
2024-06-13 02:20:47 -07:00
2025-02-22 17:09:20 -08:00
2024-06-13 02:20:47 -07:00
2025-02-06 17:02:54 -05:00
2024-06-13 02:24:39 -07:00
2024-06-13 02:20:47 -07:00
2024-06-13 02:24:39 -07:00
2025-01-16 20:47:30 -05:00
2025-02-03 09:14:37 +00:00