1*2380c36eSRobert Mustacchi/* 2*2380c36eSRobert Mustacchi * This file and its contents are supplied under the terms of the 3*2380c36eSRobert Mustacchi * Common Development and Distribution License ("CDDL"), version 1.0. 4*2380c36eSRobert Mustacchi * You may only use this file in accordance with the terms of version 5*2380c36eSRobert Mustacchi * 1.0 of the CDDL. 6*2380c36eSRobert Mustacchi * 7*2380c36eSRobert Mustacchi * A full copy of the text of the CDDL should have accompanied this 8*2380c36eSRobert Mustacchi * source. A copy of the CDDL is also available via the Internet at 9*2380c36eSRobert Mustacchi * http://www.illumos.org/license/CDDL. 10*2380c36eSRobert Mustacchi */ 11*2380c36eSRobert Mustacchi 12*2380c36eSRobert Mustacchi/* 13*2380c36eSRobert Mustacchi * Copyright 2016 Joyent, Inc. 14*2380c36eSRobert Mustacchi */ 15*2380c36eSRobert Mustacchi 16*2380c36eSRobert Mustacchi/* 17*2380c36eSRobert Mustacchi * Test SSSE3 related instructions 18*2380c36eSRobert Mustacchi */ 19*2380c36eSRobert Mustacchi 20*2380c36eSRobert Mustacchi.text 21*2380c36eSRobert Mustacchi.align 16 22*2380c36eSRobert Mustacchi.globl libdis_test 23*2380c36eSRobert Mustacchi.type libdis_test, @function 24*2380c36eSRobert Mustacchilibdis_test: 25*2380c36eSRobert Mustacchi pabsb %mm0, %mm1 26*2380c36eSRobert Mustacchi pabsb (%eax), %mm1 27*2380c36eSRobert Mustacchi pabsb %xmm0, %xmm1 28*2380c36eSRobert Mustacchi pabsb (%eax), %xmm1 29*2380c36eSRobert Mustacchi pabsd %mm0, %mm1 30*2380c36eSRobert Mustacchi pabsd (%eax), %mm1 31*2380c36eSRobert Mustacchi pabsd %xmm0, %xmm1 32*2380c36eSRobert Mustacchi pabsd (%eax), %xmm1 33*2380c36eSRobert Mustacchi pabsw %mm0, %mm1 34*2380c36eSRobert Mustacchi pabsw (%eax), %mm1 35*2380c36eSRobert Mustacchi pabsw %xmm0, %xmm1 36*2380c36eSRobert Mustacchi pabsw (%eax), %xmm1 37*2380c36eSRobert Mustacchi palignr $0x23, %mm0, %mm1 38*2380c36eSRobert Mustacchi palignr $0x23, (%eax), %mm1 39*2380c36eSRobert Mustacchi palignr $0x23, %xmm0, %xmm1 40*2380c36eSRobert Mustacchi palignr $0x23, (%eax), %xmm1 41*2380c36eSRobert Mustacchi phaddd %mm0, %mm1 42*2380c36eSRobert Mustacchi phaddd (%eax), %mm1 43*2380c36eSRobert Mustacchi phaddd %xmm0, %xmm1 44*2380c36eSRobert Mustacchi phaddd (%eax), %xmm1 45*2380c36eSRobert Mustacchi phaddw %mm0, %mm1 46*2380c36eSRobert Mustacchi phaddw (%eax), %mm1 47*2380c36eSRobert Mustacchi phaddw %xmm0, %xmm1 48*2380c36eSRobert Mustacchi phaddw (%eax), %xmm1 49*2380c36eSRobert Mustacchi phaddsw %mm0, %mm1 50*2380c36eSRobert Mustacchi phaddsw (%eax), %mm1 51*2380c36eSRobert Mustacchi phaddsw %xmm0, %xmm1 52*2380c36eSRobert Mustacchi phaddsw (%eax), %xmm1 53*2380c36eSRobert Mustacchi phsubd %mm0, %mm1 54*2380c36eSRobert Mustacchi phsubd (%eax), %mm1 55*2380c36eSRobert Mustacchi phsubd %xmm0, %xmm1 56*2380c36eSRobert Mustacchi phsubd (%eax), %xmm1 57*2380c36eSRobert Mustacchi phsubw %mm0, %mm1 58*2380c36eSRobert Mustacchi phsubw (%eax), %mm1 59*2380c36eSRobert Mustacchi phsubw %xmm0, %xmm1 60*2380c36eSRobert Mustacchi phsubw (%eax), %xmm1 61*2380c36eSRobert Mustacchi phsubsw %mm0, %mm1 62*2380c36eSRobert Mustacchi phsubsw (%eax), %mm1 63*2380c36eSRobert Mustacchi phsubsw %xmm0, %xmm1 64*2380c36eSRobert Mustacchi phsubsw (%eax), %xmm1 65*2380c36eSRobert Mustacchi pmaddubsw %mm0, %mm1 66*2380c36eSRobert Mustacchi pmaddubsw (%eax), %mm1 67*2380c36eSRobert Mustacchi pmaddubsw %xmm0, %xmm1 68*2380c36eSRobert Mustacchi pmaddubsw (%eax), %xmm1 69*2380c36eSRobert Mustacchi pmulhrsw %mm0, %mm1 70*2380c36eSRobert Mustacchi pmulhrsw (%eax), %mm1 71*2380c36eSRobert Mustacchi pmulhrsw %xmm0, %xmm1 72*2380c36eSRobert Mustacchi pmulhrsw (%eax), %xmm1 73*2380c36eSRobert Mustacchi pshufb %mm0, %mm1 74*2380c36eSRobert Mustacchi pshufb (%eax), %mm1 75*2380c36eSRobert Mustacchi pshufb %xmm0, %xmm1 76*2380c36eSRobert Mustacchi pshufb (%eax), %xmm1 77*2380c36eSRobert Mustacchi psignb %mm0, %mm1 78*2380c36eSRobert Mustacchi psignb (%eax), %mm1 79*2380c36eSRobert Mustacchi psignb %xmm0, %xmm1 80*2380c36eSRobert Mustacchi psignb (%eax), %xmm1 81*2380c36eSRobert Mustacchi psignd %mm0, %mm1 82*2380c36eSRobert Mustacchi psignd (%eax), %mm1 83*2380c36eSRobert Mustacchi psignd %xmm0, %xmm1 84*2380c36eSRobert Mustacchi psignd (%eax), %xmm1 85*2380c36eSRobert Mustacchi psignw %mm0, %mm1 86*2380c36eSRobert Mustacchi psignw (%eax), %mm1 87*2380c36eSRobert Mustacchi psignw %xmm0, %xmm1 88*2380c36eSRobert Mustacchi psignw (%eax), %xmm1 89*2380c36eSRobert Mustacchi.size libdis_test, [.-libdis_test] 90