First version committed to git
[zpugcc/jano.git] / toolchain / binutils / gas / testsuite / gas / cfi / cfi-sparc64-1.s
blobacbe32b64a381926ba79fc8a68edbf22143e0fb2
1 #; $ as -o test.o -64 gas-cfi-test.s && gcc -m64 -nostdlib -o test test.o
3 .file "a.c"
4 .text
5 .align 4
6 .globl foo
7 .type foo, @function
8 foo:
9 .cfi_startproc
10 save %sp, -192, %sp
11 .cfi_def_cfa_register %fp
12 .cfi_window_save
13 .cfi_register %o7, %i7
14 add %i0, 1, %o0
15 add %i0, 2, %i0
16 call bar, 0
17 sra %o0, 0, %o0
18 sra %i0, 0, %i0
19 call bar, 0
20 mov %i0, %o0
21 add %o0, 3, %o0
22 sra %o0, 0, %o0
23 ret
24 restore %g0, %o0, %o0
25 .cfi_endproc
26 .size foo, .-foo