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 SHA related instructions 18 */ 19 20.text 21.align 16 22.globl libdis_test 23.type libdis_test, @function 24libdis_test: 25 sha1rnds4 $0x1, %xmm0, %xmm1 26 sha1rnds4 $0x2, (%rbx), %xmm1 27 sha1rnds4 $0x3, 0x23(%rbx), %xmm1 28 sha1rnds4 $0x2, (%rbx, %rcx, 4), %xmm1 29 sha1nexte %xmm0, %xmm1 30 sha1nexte (%rbx), %xmm1 31 sha1nexte 0x23(%rbx), %xmm1 32 sha1nexte (%rbx, %rcx, 4), %xmm1 33 sha1msg1 %xmm0, %xmm1 34 sha1msg1 (%rbx), %xmm1 35 sha1msg1 0x23(%rbx), %xmm1 36 sha1msg1 (%rbx, %rcx, 4), %xmm1 37 sha1msg2 %xmm0, %xmm1 38 sha1msg2 (%rbx), %xmm1 39 sha1msg2 0x23(%rbx), %xmm1 40 sha1msg2 (%rbx, %rcx, 4), %xmm1 41 sha256rnds2 %xmm4, %xmm5 42 sha256rnds2 (%rbx), %xmm5 43 sha256rnds2 0x23(%rbx), %xmm5 44 sha256rnds2 (%rbx, %rcx, 4), %xmm5 45 sha256msg1 %xmm0, %xmm1 46 sha256msg1 (%rbx), %xmm1 47 sha256msg1 0x23(%rbx), %xmm1 48 sha256msg1 (%rbx, %rcx, 4), %xmm1 49 sha256msg2 %xmm0, %xmm1 50 sha256msg2 (%rbx), %xmm1 51 sha256msg2 0x23(%rbx), %xmm1 52 sha256msg2 (%rbx, %rcx, 4), %xmm1 53.size libdis_test, [.-libdis_test] 54