Matthieu Pizenberg
|
0392a93d1b
|
Implement bitwise shifts (#8469)
* Implement bitwise shifts
Signed-off-by: Matthieu Pizenberg <matthieu.pizenberg@gmail.com>
* Add low_level_interp shift tests
Signed-off-by: Matthieu Pizenberg <matthieu.pizenberg@gmail.com>
* Fix wrong test
Signed-off-by: Matthieu Pizenberg <matthieu.pizenberg@gmail.com>
* Use appropriate byte size for shifts
Signed-off-by: Matthieu Pizenberg <matthieu.pizenberg@gmail.com>
* Simplify shift left and right interpreter
Signed-off-by: Matthieu Pizenberg <matthieu.pizenberg@gmail.com>
* Factorize the num_shift_right_zf_by in interpreter
Signed-off-by: Matthieu Pizenberg <matthieu.pizenberg@gmail.com>
* Add edge cases tests for shifts
Signed-off-by: Matthieu Pizenberg <matthieu.pizenberg@gmail.com>
* Fix an edge case test
Signed-off-by: Matthieu Pizenberg <matthieu.pizenberg@gmail.com>
* Truncate shift left to the correct precision
Signed-off-by: Matthieu Pizenberg <matthieu.pizenberg@gmail.com>
* Add shift operators to the borrow switch
Signed-off-by: Matthieu Pizenberg <matthieu.pizenberg@gmail.com>
* restore accidental deletions
---------
Signed-off-by: Matthieu Pizenberg <matthieu.pizenberg@gmail.com>
Co-authored-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
|
2025-12-17 19:32:38 +01:00 |
|