root/usr/src/test/util-tests/tests/dis/i386/32.vaes.s
/*
 * This file and its contents are supplied under the terms of the
 * Common Development and Distribution License ("CDDL"), version 1.0.
 * You may only use this file in accordance with the terms of version
 * 1.0 of the CDDL.
 *
 * A full copy of the text of the CDDL should have accompanied this
 * source.  A copy of the CDDL is also available via the Internet at
 * http://www.illumos.org/license/CDDL.
 */

/*
 * Copyright 2020 Robert Mustacchi
 */

/*
 * Test VAES related instructions
 */

.text
.align 16
.globl libdis_test
.type libdis_test, @function
libdis_test:
        vaesenc %xmm0, %xmm1, %xmm2
        vaesenc (%eax), %xmm1, %xmm2
        vaesenc %ymm3, %ymm4, %ymm5
        vaesenc (%ebx), %ymm4, %ymm5
        vaesenc %zmm6, %zmm7, %zmm0
        vaesenc (%ecx), %zmm7, %zmm0

        vaesenclast     %xmm0, %xmm1, %xmm2
        vaesenclast     (%eax), %xmm1, %xmm2
        vaesenclast     %ymm3, %ymm4, %ymm5
        vaesenclast     (%ebx), %ymm4, %ymm5
        vaesenclast     %zmm6, %zmm7, %zmm0
        vaesenclast     (%ecx), %zmm7, %zmm0

        vaesdec %xmm0, %xmm1, %xmm2
        vaesdec (%eax), %xmm1, %xmm2
        vaesdec %ymm3, %ymm4, %ymm5
        vaesdec (%ebx), %ymm4, %ymm5
        vaesdec %zmm6, %zmm7, %zmm0
        vaesdec (%ecx), %zmm7, %zmm0

        vaesdeclast     %xmm0, %xmm1, %xmm2
        vaesdeclast     (%eax), %xmm1, %xmm2
        vaesdeclast     %ymm3, %ymm4, %ymm5
        vaesdeclast     (%ebx), %ymm4, %ymm5
        vaesdeclast     %zmm6, %zmm7, %zmm0
        vaesdeclast     (%ecx), %zmm7, %zmm0
.size libdis_test, [.-libdis_test]