xref: /illumos-gate/usr/src/test/util-tests/tests/dis/i386/64.vaes.s (revision 08855964b9970604433f7b19dcd71cf5af5e5f14)
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	(%rax), %xmm1, %xmm2
27	vaesenc	%ymm3, %ymm4, %ymm5
28	vaesenc	(%rbx), %ymm4, %ymm5
29	vaesenc	%zmm6, %zmm7, %zmm0
30	vaesenc	(%rcx), %zmm7, %zmm0
31
32	vaesenclast	%xmm0, %xmm1, %xmm2
33	vaesenclast	(%rax), %xmm1, %xmm2
34	vaesenclast	%ymm3, %ymm4, %ymm5
35	vaesenclast	(%rbx), %ymm4, %ymm5
36	vaesenclast	%zmm6, %zmm7, %zmm0
37	vaesenclast	(%rcx), %zmm7, %zmm0
38
39	vaesdec	%xmm0, %xmm1, %xmm2
40	vaesdec	(%rax), %xmm1, %xmm2
41	vaesdec	%ymm3, %ymm4, %ymm5
42	vaesdec	(%rbx), %ymm4, %ymm5
43	vaesdec	%zmm6, %zmm7, %zmm0
44	vaesdec	(%rcx), %zmm7, %zmm0
45
46	vaesdeclast	%xmm0, %xmm1, %xmm2
47	vaesdeclast	(%rax), %xmm1, %xmm2
48	vaesdeclast	%ymm3, %ymm4, %ymm5
49	vaesdeclast	(%rbx), %ymm4, %ymm5
50	vaesdeclast	%zmm6, %zmm7, %zmm0
51	vaesdeclast	(%rcx), %zmm7, %zmm0
52.size libdis_test, [.-libdis_test]
53