1*1f154020SRobert Mustacchi/* 2*1f154020SRobert Mustacchi * This file and its contents are supplied under the terms of the 3*1f154020SRobert Mustacchi * Common Development and Distribution License ("CDDL"), version 1.0. 4*1f154020SRobert Mustacchi * You may only use this file in accordance with the terms of version 5*1f154020SRobert Mustacchi * 1.0 of the CDDL. 6*1f154020SRobert Mustacchi * 7*1f154020SRobert Mustacchi * A full copy of the text of the CDDL should have accompanied this 8*1f154020SRobert Mustacchi * source. A copy of the CDDL is also available via the Internet at 9*1f154020SRobert Mustacchi * http://www.illumos.org/license/CDDL. 10*1f154020SRobert Mustacchi */ 11*1f154020SRobert Mustacchi 12*1f154020SRobert Mustacchi/* 13*1f154020SRobert Mustacchi * Copyright 2018, Joyent, Inc. 14*1f154020SRobert Mustacchi */ 15*1f154020SRobert Mustacchi 16*1f154020SRobert Mustacchi/* 17*1f154020SRobert Mustacchi * Test our disassembly of the RV64F instructions. Instructions are ordered per 18*1f154020SRobert Mustacchi * the ISA manual. 19*1f154020SRobert Mustacchi */ 20*1f154020SRobert Mustacchi 21*1f154020SRobert Mustacchi.text 22*1f154020SRobert Mustacchi.align 16 23*1f154020SRobert Mustacchi.globl libdis_test 24*1f154020SRobert Mustacchi.type libdis_test, @function 25*1f154020SRobert Mustacchilibdis_test: 26*1f154020SRobert Mustacchi fcvt.l.d t0, ft1 27*1f154020SRobert Mustacchi fcvt.l.d t1, ft2, rne 28*1f154020SRobert Mustacchi fcvt.l.d t2, ft3, rtz 29*1f154020SRobert Mustacchi fcvt.l.d t3, ft4, rdn 30*1f154020SRobert Mustacchi fcvt.l.d t4, ft5, rup 31*1f154020SRobert Mustacchi fcvt.l.d t5, ft6, rmm 32*1f154020SRobert Mustacchi 33*1f154020SRobert Mustacchi fcvt.lu.d t1, ft0 34*1f154020SRobert Mustacchi fcvt.lu.d t2, ft1, rne 35*1f154020SRobert Mustacchi fcvt.lu.d t3, ft2, rtz 36*1f154020SRobert Mustacchi fcvt.lu.d t4, ft3, rdn 37*1f154020SRobert Mustacchi fcvt.lu.d t5, ft4, rup 38*1f154020SRobert Mustacchi fcvt.lu.d t6, ft5, rmm 39*1f154020SRobert Mustacchi 40*1f154020SRobert Mustacchi fmv.x.d t3, fa1 41*1f154020SRobert Mustacchi 42*1f154020SRobert Mustacchi fcvt.d.l ft1, t0 43*1f154020SRobert Mustacchi fcvt.d.l ft2, t1, rne 44*1f154020SRobert Mustacchi fcvt.d.l ft3, t2, rtz 45*1f154020SRobert Mustacchi fcvt.d.l ft4, t3, rdn 46*1f154020SRobert Mustacchi fcvt.d.l ft5, t4, rup 47*1f154020SRobert Mustacchi fcvt.d.l ft6, t5, rmm 48*1f154020SRobert Mustacchi 49*1f154020SRobert Mustacchi fcvt.d.lu ft1, t0 50*1f154020SRobert Mustacchi fcvt.d.lu ft2, t1, rne 51*1f154020SRobert Mustacchi fcvt.d.lu ft3, t2, rtz 52*1f154020SRobert Mustacchi fcvt.d.lu ft4, t3, rdn 53*1f154020SRobert Mustacchi fcvt.d.lu ft5, t4, rup 54*1f154020SRobert Mustacchi fcvt.d.lu ft6, t5, rmm 55*1f154020SRobert Mustacchi 56*1f154020SRobert Mustacchi fmv.d.x fa2, t3 57*1f154020SRobert Mustacchi.size libdis_test, [.-libdis_test] 58