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 SSE 4.2 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 crc32b %al, %ebx 26*2380c36eSRobert Mustacchi crc32b (%eax), %ebx 27*2380c36eSRobert Mustacchi crc32w %ax, %ebx 28*2380c36eSRobert Mustacchi crc32w (%eax), %ebx 29*2380c36eSRobert Mustacchi crc32l %eax, %ebx 30*2380c36eSRobert Mustacchi crc32l (%eax), %ebx 31*2380c36eSRobert Mustacchi pcmpestri $0x23, %xmm0, %xmm1 32*2380c36eSRobert Mustacchi pcmpestri $0x23, (%eax), %xmm1 33*2380c36eSRobert Mustacchi pcmpestrm $0x23, %xmm0, %xmm1 34*2380c36eSRobert Mustacchi pcmpestrm $0x23, (%eax), %xmm1 35*2380c36eSRobert Mustacchi pcmpgtq %xmm0, %xmm1 36*2380c36eSRobert Mustacchi pcmpgtq (%eax), %xmm1 37*2380c36eSRobert Mustacchi pcmpistri $0x23, %xmm0, %xmm1 38*2380c36eSRobert Mustacchi pcmpistri $0x23, (%eax), %xmm1 39*2380c36eSRobert Mustacchi pcmpistrm $0x23, %xmm0, %xmm1 40*2380c36eSRobert Mustacchi pcmpistrm $0x23, (%eax), %xmm1 41*2380c36eSRobert Mustacchi.size libdis_test, [.-libdis_test] 42