aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/test/ref/05.s
diff options
context:
space:
mode:
Diffstat (limited to 'c_compiler/test/ref/05.s')
-rw-r--r--c_compiler/test/ref/05.s47
1 files changed, 47 insertions, 0 deletions
diff --git a/c_compiler/test/ref/05.s b/c_compiler/test/ref/05.s
new file mode 100644
index 0000000..a8a6ea5
--- /dev/null
+++ b/c_compiler/test/ref/05.s
@@ -0,0 +1,47 @@
+ .file 1 "05.c"
+ .section .mdebug.abi32
+ .previous
+ .nan legacy
+ .module fp=xx
+ .module nooddspreg
+ .abicalls
+
+ .comm glob,4,4
+ .rdata
+ .align 2
+$LC0:
+ .ascii "Yann\000"
+ .text
+ .align 2
+ .globl main
+ .set nomips16
+ .set nomicromips
+ .ent main
+ .type main, @function
+main:
+ .frame $fp,8,$31 # vars= 0, regs= 1/0, args= 0, gp= 0
+ .mask 0x40000000,-4
+ .fmask 0x00000000,0
+ .set noreorder
+ .set nomacro
+ addiu $sp,$sp,-8
+ sw $fp,4($sp)
+ move $fp,$sp
+ lui $28,%hi(__gnu_local_gp)
+ addiu $28,$28,%lo(__gnu_local_gp)
+ lw $2,%got(glob)($28)
+ lui $3,%hi($LC0)
+ addiu $3,$3,%lo($LC0)
+ sw $3,0($2)
+ move $2,$0
+ move $sp,$fp
+ lw $fp,4($sp)
+ addiu $sp,$sp,8
+ 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"