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 2018, Joyent, Inc.
14 */
15
16/*
17 * Test our disassembly of the RV64A instructions. Instructions are ordered per the
18 * ISA manual.
19 */
20
21.text
22.align 16
23.globl libdis_test
24.type libdis_test, @function
25libdis_test:
26	lr.d		s0, (s1)
27	lr.d.aq		s1, (s2)
28	lr.d.rl		s2, (s3)
29	lr.d.aqrl	s3, (s4)
30	sc.d		s0, s2, (s1)
31	sc.d.aq		s1, s3, (s1)
32	sc.d.rl		s2, s4, (s1)
33	sc.d.aqrl	s3, s5, (s1)
34	amoswap.d	t0, t1, (t2)
35	amoswap.d.aq	t1, t2, (t3)
36	amoswap.d.rl	t2, t3, (t4)
37	amoswap.d.aqrl	t3, t4, (t5)
38	amoadd.d	t0, t1, (t2)
39	amoadd.d.aq	t1, t2, (t3)
40	amoadd.d.rl	t2, t3, (t4)
41	amoadd.d.aqrl	t3, t4, (t5)
42	amoxor.d	t0, t1, (t2)
43	amoxor.d.aq	t1, t2, (t3)
44	amoxor.d.rl	t2, t3, (t4)
45	amoxor.d.aqrl	t3, t4, (t5)
46	amoand.d	t0, t1, (t2)
47	amoand.d.aq	t1, t2, (t3)
48	amoand.d.rl	t2, t3, (t4)
49	amoand.d.aqrl	t3, t4, (t5)
50	amoor.d		t0, t1, (t2)
51	amoor.d.aq	t1, t2, (t3)
52	amoor.d.rl	t2, t3, (t4)
53	amoor.d.aqrl	t3, t4, (t5)
54	amomin.d	t0, t1, (t2)
55	amomin.d.aq	t1, t2, (t3)
56	amomin.d.rl	t2, t3, (t4)
57	amomin.d.aqrl	t3, t4, (t5)
58	amomax.d	t0, t1, (t2)
59	amomax.d.aq	t1, t2, (t3)
60	amomax.d.rl	t2, t3, (t4)
61	amomax.d.aqrl	t3, t4, (t5)
62	amominu.d	t0, t1, (t2)
63	amominu.d.aq	t1, t2, (t3)
64	amominu.d.rl	t2, t3, (t4)
65	amominu.d.aqrl	t3, t4, (t5)
66	amomaxu.d	t0, t1, (t2)
67	amomaxu.d.aq	t1, t2, (t3)
68	amomaxu.d.rl	t2, t3, (t4)
69	amomaxu.d.aqrl	t3, t4, (t5)
70.size libdis_test, [.-libdis_test]
71