xref: /illumos-gate/usr/src/test/util-tests/tests/dis/i386/64.sse-3.s (revision 069e6b7e31ba5dcbc5441b98af272714d9a5455c)
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 2016 Joyent, Inc.
14 */
15
16/*
17 * Test SSE 3 related instructions
18 */
19
20.text
21.align 16
22.globl libdis_test
23.type libdis_test, @function
24libdis_test:
25	addsubpd	%xmm0, %xmm1
26	addsubpd	(%rdx), %xmm2
27	addsubpd	0x23(%rsp), %xmm2
28	addsubps	%xmm0, %xmm1
29	addsubps	(%rdx), %xmm2
30	addsubps	0x23(%rsp), %xmm2
31	haddpd		%xmm0, %xmm1
32	haddpd		(%rdx), %xmm2
33	haddpd		0x23(%rsp), %xmm2
34	haddps		%xmm0, %xmm1
35	haddps		(%rdx), %xmm2
36	haddps		0x23(%rsp), %xmm2
37	hsubpd		%xmm0, %xmm1
38	hsubpd		(%rdx), %xmm2
39	hsubpd		0x23(%rsp), %xmm2
40	hsubps		%xmm0, %xmm1
41	hsubps		(%rdx), %xmm2
42	hsubps		0x23(%rsp), %xmm2
43	lddqu		(%rax), %xmm3
44	movddup		%xmm4, %xmm5
45	movddup		(%rax), %xmm6
46	movddup		0x42(%rbx), %xmm7
47	movshdup	%xmm4, %xmm5
48	movshdup	(%rax), %xmm6
49	movshdup	0x42(%rbx), %xmm7
50	movsldup	%xmm4, %xmm5
51	movsldup	(%rax), %xmm6
52	movsldup	0x42(%rbx), %xmm7
53	fisttp		0x1234(%rax)
54	fisttpl		0x1234(%rax)
55	fisttpll	0x1234(%rax)
56.size libdis_test, [.-libdis_test]
57