From d38d949862d4d5be0fe83e013b886075a6169317 Mon Sep 17 00:00:00 2001 From: Benjamin Lerman Date: Fri, 9 Feb 2024 17:38:06 +0100 Subject: [PATCH] Add conformance test for div32 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 --- tests/div32-by-zero-reg-2.data | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/div32-by-zero-reg-2.data diff --git a/tests/div32-by-zero-reg-2.data b/tests/div32-by-zero-reg-2.data new file mode 100644 index 0000000..a994ac9 --- /dev/null +++ b/tests/div32-by-zero-reg-2.data @@ -0,0 +1,7 @@ +-- asm +mov32 %r0, 1 +lddw %r1, 0x100000000 +div32 %r0, %r1 +exit +-- result +0x0