Merge remote-tracking branch 'origin/master'
[unleashed/lotheac.git] / usr / src / test / util-tests / tests / dis / i386 / 32.sha.s
blobe6d9a320503c7d359e83d2d526bf7c722da611a8
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.
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.
13 * Copyright 2016 Joyent, Inc.
17 * Test SHA related instructions
20 .text
21 .align 16
22 .globl libdis_test
23 .type libdis_test, @function
24 libdis_test:
25 sha1rnds4 $0x1, %xmm0, %xmm1
26 sha1rnds4 $0x2, (%ebx), %xmm1
27 sha1rnds4 $0x3, 0x23(%ebx), %xmm1
28 sha1rnds4 $0x2, (%ebx, %ecx, 4), %xmm1
29 sha1nexte %xmm0, %xmm1
30 sha1nexte (%ebx), %xmm1
31 sha1nexte 0x23(%ebx), %xmm1
32 sha1nexte (%ebx, %ecx, 4), %xmm1
33 sha1msg1 %xmm0, %xmm1
34 sha1msg1 (%ebx), %xmm1
35 sha1msg1 0x23(%ebx), %xmm1
36 sha1msg1 (%ebx, %ecx, 4), %xmm1
37 sha1msg2 %xmm0, %xmm1
38 sha1msg2 (%ebx), %xmm1
39 sha1msg2 0x23(%ebx), %xmm1
40 sha1msg2 (%ebx, %ecx, 4), %xmm1
41 sha256rnds2 %xmm4, %xmm5
42 sha256rnds2 (%ebx), %xmm5
43 sha256rnds2 0x23(%ebx), %xmm5
44 sha256rnds2 (%ebx, %ecx, 4), %xmm5
45 sha256msg1 %xmm0, %xmm1
46 sha256msg1 (%ebx), %xmm1
47 sha256msg1 0x23(%ebx), %xmm1
48 sha256msg1 (%ebx, %ecx, 4), %xmm1
49 sha256msg2 %xmm0, %xmm1
50 sha256msg2 (%ebx), %xmm1
51 sha256msg2 0x23(%ebx), %xmm1
52 sha256msg2 (%ebx, %ecx, 4), %xmm1
53 .size libdis_test, [.-libdis_test]