xref: /illumos-gate/usr/src/test/util-tests/tests/dis/i386/32.vaes.s (revision ed093b41a93e8563e6e1e5dae0768dda2a7bcc27)
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 2020 Robert Mustacchi
14 */
15
16/*
17 * Test VAES related instructions
18 */
19
20.text
21.align 16
22.globl libdis_test
23.type libdis_test, @function
24libdis_test:
25	vaesenc	%xmm0, %xmm1, %xmm2
26	vaesenc	(%eax), %xmm1, %xmm2
27	vaesenc	%ymm3, %ymm4, %ymm5
28	vaesenc	(%ebx), %ymm4, %ymm5
29	vaesenc	%zmm6, %zmm7, %zmm0
30	vaesenc	(%ecx), %zmm7, %zmm0
31
32	vaesenclast	%xmm0, %xmm1, %xmm2
33	vaesenclast	(%eax), %xmm1, %xmm2
34	vaesenclast	%ymm3, %ymm4, %ymm5
35	vaesenclast	(%ebx), %ymm4, %ymm5
36	vaesenclast	%zmm6, %zmm7, %zmm0
37	vaesenclast	(%ecx), %zmm7, %zmm0
38
39	vaesdec	%xmm0, %xmm1, %xmm2
40	vaesdec	(%eax), %xmm1, %xmm2
41	vaesdec	%ymm3, %ymm4, %ymm5
42	vaesdec	(%ebx), %ymm4, %ymm5
43	vaesdec	%zmm6, %zmm7, %zmm0
44	vaesdec	(%ecx), %zmm7, %zmm0
45
46	vaesdeclast	%xmm0, %xmm1, %xmm2
47	vaesdeclast	(%eax), %xmm1, %xmm2
48	vaesdeclast	%ymm3, %ymm4, %ymm5
49	vaesdeclast	(%ebx), %ymm4, %ymm5
50	vaesdeclast	%zmm6, %zmm7, %zmm0
51	vaesdeclast	(%ecx), %zmm7, %zmm0
52.size libdis_test, [.-libdis_test]
53