aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/test/out/SimpleSubtraction.s
diff options
context:
space:
mode:
Diffstat (limited to 'c_compiler/test/out/SimpleSubtraction.s')
-rw-r--r--c_compiler/test/out/SimpleSubtraction.s21
1 files changed, 21 insertions, 0 deletions
diff --git a/c_compiler/test/out/SimpleSubtraction.s b/c_compiler/test/out/SimpleSubtraction.s
new file mode 100644
index 0000000..5c0e0a5
--- /dev/null
+++ b/c_compiler/test/out/SimpleSubtraction.s
@@ -0,0 +1,21 @@
+ .text
+ .globl main
+main:
+ addiu $sp,$sp,-20
+ sw $fp,16($sp)
+ move $fp,$sp
+ li $2,23
+ sw $2,4($fp)
+ li $2,19
+ sw $2,8($fp)
+ lw $2,8($fp)
+ move $3,$2
+ lw $2,4($fp)
+ sub $2,$2,$3
+ sw $2,12($fp)
+ lw $2,12($fp)
+ move $sp,$fp
+ lw $fp,16($sp)
+ addiu $sp,$sp,20
+ jr $31
+ nop