xref: /illumos-gate/usr/src/test/util-tests/tests/dis/sparc/tst.regs.s (revision c65ebfc7045424bd04a6c7719a27b0ad3399ad54)
1/*
2 * This file and its contents are supplied under the terms of the
3 * Common Development and Distribution License ("CDDL"), version 1.0.
4 * You may only use this file in accordance with the terms of version
5 * 1.0 of the CDDL.
6 *
7 * A full copy of the text of the CDDL should have accompanied this
8 * source.  A copy of the CDDL is also available via the Internet at
9 * http://www.illumos.org/license/CDDL.
10 */
11
12/*
13 * Copyright 2016 Joyent, Inc.
14 */
15
16/*
17 * Test basic register naming
18 */
19
20.text
21.align 16
22.globl libdis_test
23.type libdis_test, @function
24libdis_test:
25	add %g0, %g1, %g2
26	add %g1, %g2, %g3
27	add %g2, %g3, %g4
28	add %g3, %g4, %g5
29	add %g4, %g5, %g6
30	add %g5, %g6, %g7
31	add %g6, %g7, %o0
32	add %g7, %o0, %o1
33	add %o0, %o1, %o2
34	add %o1, %o2, %o3
35	add %o2, %o3, %o4
36	add %o3, %o4, %o5
37	add %o4, %o5, %sp
38	add %o5, %sp, %o7
39	add %sp, %o7, %l0
40	add %o7, %l0, %l1
41	add %l0, %l1, %l2
42	add %l1, %l2, %l3
43	add %l2, %l3, %l4
44	add %l3, %l4, %l5
45	add %l4, %l5, %l6
46	add %l5, %l6, %l7
47	add %l6, %l7, %i0
48	add %l7, %i0, %i1
49	add %i0, %i1, %i2
50	add %i1, %i2, %i3
51	add %i2, %i3, %i4
52	add %i3, %i4, %i5
53	add %i4, %i5, %fp
54	add %i5, %fp, %i7
55.size libdis_test, [.-libdis_test]
56