aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/test/ref/SimpleAdd_2.s
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-03-10 21:23:53 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-03-10 21:23:53 +0000
commit7606b62bc81fd8ea55a6a65104be273f954e70c1 (patch)
tree268376c7926f6dbe4fd2f98df30c3e00d8018314 /c_compiler/test/ref/SimpleAdd_2.s
parentd7a31b4cbcc50c46ff3ea671e120d29c68d36795 (diff)
downloadCompiler-7606b62bc81fd8ea55a6a65104be273f954e70c1.tar.gz
Compiler-7606b62bc81fd8ea55a6a65104be273f954e70c1.zip
Changed simple test case
Diffstat (limited to 'c_compiler/test/ref/SimpleAdd_2.s')
-rw-r--r--c_compiler/test/ref/SimpleAdd_2.s40
1 files changed, 40 insertions, 0 deletions
diff --git a/c_compiler/test/ref/SimpleAdd_2.s b/c_compiler/test/ref/SimpleAdd_2.s
new file mode 100644
index 0000000..516f1a2
--- /dev/null
+++ b/c_compiler/test/ref/SimpleAdd_2.s
@@ -0,0 +1,40 @@
+ .file 1 "SimpleAdd_2.c"
+ .section .mdebug.abi32
+ .previous
+ .nan legacy
+ .module fp=xx
+ .module nooddspreg
+ .abicalls
+ .text
+ .align 2
+ .globl main
+ .set nomips16
+ .set nomicromips
+ .ent main
+ .type main, @function
+main:
+ .frame $fp,16,$31 # vars= 8, regs= 1/0, args= 0, gp= 0
+ .mask 0x40000000,-4
+ .fmask 0x00000000,0
+ .set noreorder
+ .set nomacro
+ addiu $sp,$sp,-16
+ sw $fp,12($sp)
+ move $fp,$sp
+ li $2,4 # 0x4
+ sw $2,4($fp)
+ lw $2,4($fp)
+ addiu $2,$2,1
+ sw $2,4($fp)
+ lw $2,4($fp)
+ move $sp,$fp
+ lw $fp,12($sp)
+ addiu $sp,$sp,16
+ j $31
+ nop
+
+ .set macro
+ .set reorder
+ .end main
+ .size main, .-main
+ .ident "GCC: (Ubuntu 5.4.0-6ubuntu1~16.04.1) 5.4.0 20160609"