From c250afa7a0a9fe003196aded1a0749ed440481a3 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 30 Sep 2024 18:50:22 -0400 Subject: update testing --- test/masm/div.asm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/masm/div.asm (limited to 'test/masm/div.asm') diff --git a/test/masm/div.asm b/test/masm/div.asm new file mode 100644 index 0000000..b9b4f3f --- /dev/null +++ b/test/masm/div.asm @@ -0,0 +1,17 @@ +# Copyright (c) 2024 Freya Murphy + +# file: div.asm +# test: should cause floting point exception + +.text +.align 2 +.globl main + +main: + # divide by zero + li $t0, 0 + div $t0, $t0, $t0 + + # return + li $v0, 0 + jr $ra -- cgit v1.2.3-freya