aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/test/ref/ScopeWithAdd.s
diff options
context:
space:
mode:
Diffstat (limited to 'c_compiler/test/ref/ScopeWithAdd.s')
-rw-r--r--c_compiler/test/ref/ScopeWithAdd.s43
1 files changed, 43 insertions, 0 deletions
diff --git a/c_compiler/test/ref/ScopeWithAdd.s b/c_compiler/test/ref/ScopeWithAdd.s
new file mode 100644
index 0000000..74b98b0
--- /dev/null
+++ b/c_compiler/test/ref/ScopeWithAdd.s
@@ -0,0 +1,43 @@
+ .file 1 "ScopeWithAdd.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,24,$31 # vars= 16, regs= 1/0, args= 0, gp= 0
+ .mask 0x40000000,-4
+ .fmask 0x00000000,0
+ .set noreorder
+ .set nomacro
+ addiu $sp,$sp,-24
+ sw $fp,20($sp)
+ move $fp,$sp
+ li $2,4 # 0x4
+ sw $2,4($fp)
+ li $2,35 # 0x23
+ sw $2,8($fp)
+ li $2,6 # 0x6
+ sw $2,12($fp)
+ li $2,9 # 0x9
+ sw $2,4($fp)
+ lw $2,4($fp)
+ move $sp,$fp
+ lw $fp,20($sp)
+ addiu $sp,$sp,24
+ 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"