xref: /illumos-gate/usr/src/test/util-tests/tests/dis/risc-v/64.rv64d.s (revision 20a7641f9918de8574b8b3b47dbe35c4bfc78df1)
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 RV64F instructions. Instructions are ordered per
18 * the ISA manual.
19 */
20
21.text
22.align 16
23.globl libdis_test
24.type libdis_test, @function
25libdis_test:
26	fcvt.l.d	t0, ft1
27	fcvt.l.d	t1, ft2, rne
28	fcvt.l.d	t2, ft3, rtz
29	fcvt.l.d	t3, ft4, rdn
30	fcvt.l.d	t4, ft5, rup
31	fcvt.l.d	t5, ft6, rmm
32
33	fcvt.lu.d	t1, ft0
34	fcvt.lu.d	t2, ft1, rne
35	fcvt.lu.d	t3, ft2, rtz
36	fcvt.lu.d	t4, ft3, rdn
37	fcvt.lu.d	t5, ft4, rup
38	fcvt.lu.d	t6, ft5, rmm
39
40	fmv.x.d		t3, fa1
41
42	fcvt.d.l	ft1, t0
43	fcvt.d.l	ft2, t1, rne
44	fcvt.d.l	ft3, t2, rtz
45	fcvt.d.l	ft4, t3, rdn
46	fcvt.d.l	ft5, t4, rup
47	fcvt.d.l	ft6, t5, rmm
48
49	fcvt.d.lu	ft1, t0
50	fcvt.d.lu	ft2, t1, rne
51	fcvt.d.lu	ft3, t2, rtz
52	fcvt.d.lu	ft4, t3, rdn
53	fcvt.d.lu	ft5, t4, rup
54	fcvt.d.lu	ft6, t5, rmm
55
56	fmv.d.x		fa2, t3
57.size libdis_test, [.-libdis_test]
58