From 091c684bf1d2cca09da001b9170b205dbe5c333f Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 1 Oct 2024 18:22:10 -0400 Subject: add recursion test, add noops for branch delay slots --- test/masm/fpe.asm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/masm/fpe.asm (limited to 'test/masm/fpe.asm') diff --git a/test/masm/fpe.asm b/test/masm/fpe.asm new file mode 100644 index 0000000..a3725d5 --- /dev/null +++ b/test/masm/fpe.asm @@ -0,0 +1,18 @@ +# 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 + nop -- cgit v1.2.3-freya