Skip to content

Commit

Permalink
Add conformance test for div32
Browse files Browse the repository at this point in the history
This test that doing a div32 by a register that is not 0 but has its
lower 32 bits to 0 is correct.

Signed-off-by: Benjamin Lerman <qsr@google.com>
  • Loading branch information
qsr committed Feb 26, 2024
1 parent f61ccaf commit d38d949
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/div32-by-zero-reg-2.data
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- asm
mov32 %r0, 1
lddw %r1, 0x100000000
div32 %r0, %r1
exit
-- result
0x0

0 comments on commit d38d949

Please sign in to comment.