summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/cfi/cfi-sparc-1.s
diff options
context:
space:
mode:
Diffstat (limited to 'gas/testsuite/gas/cfi/cfi-sparc-1.s')
-rw-r--r--gas/testsuite/gas/cfi/cfi-sparc-1.s23
1 files changed, 23 insertions, 0 deletions
diff --git a/gas/testsuite/gas/cfi/cfi-sparc-1.s b/gas/testsuite/gas/cfi/cfi-sparc-1.s
new file mode 100644
index 000000000000..a88ac7f7cd7b
--- /dev/null
+++ b/gas/testsuite/gas/cfi/cfi-sparc-1.s
@@ -0,0 +1,23 @@
+#; $ as -o test.o -32 gas-cfi-test.s && gcc -m32 -nostdlib -o test test.o
+
+ .file "a.c"
+ .text
+ .align 4
+ .globl foo
+ .type foo, @function
+foo:
+ .cfi_startproc
+ save %sp, -104, %sp
+ .cfi_def_cfa_register %fp
+ .cfi_window_save
+ .cfi_register %o7, %i7
+ add %i0, 1, %o0
+ call bar, 0
+ add %i0, 2, %i0
+ call bar, 0
+ mov %i0, %o0
+ add %o0, 3, %o0
+ ret
+ restore %g0, %o0, %o0
+ .cfi_endproc
+ .size foo, .-foo