summaryrefslogtreecommitdiff
path: root/test/masm/fpe.asm
blob: a3725d573db848a37c37e55be812d6709ad10940 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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