Support Intel SHA
[deliverable/binutils-gdb.git] / gas / testsuite / gas / i386 / x86-64-sha.s
1 # Check SHA instructions
2
3 .allow_index_reg
4 .text
5 _start:
6 sha1rnds4 $9, %xmm2, %xmm1
7 sha1rnds4 $7, (%rax), %xmm2
8 sha1rnds4 $5, 0x12(%rax), %xmm3
9 sha1rnds4 $1, (%rax,%rbx,2), %xmm4
10 sha1nexte %xmm2, %xmm7
11 sha1nexte (%rax), %xmm8
12 sha1nexte 0x12(%rax), %xmm9
13 sha1nexte (%rax,%rbx,2), %xmm10
14 sha1msg1 %xmm2, %xmm7
15 sha1msg1 (%rax), %xmm8
16 sha1msg1 0x12(%rax), %xmm9
17 sha1msg1 (%rax,%rbx,2), %xmm10
18 sha1msg2 %xmm2, %xmm7
19 sha1msg2 (%rax), %xmm8
20 sha1msg2 0x12(%rax), %xmm9
21 sha1msg2 (%rax,%rbx,2), %xmm10
22 sha256rnds2 %xmm2, %xmm1
23 sha256rnds2 (%rax), %xmm1
24 sha256rnds2 0x12(%rax), %xmm1
25 sha256rnds2 (%rax,%rbx,2), %xmm1
26 sha256rnds2 %xmm0, %xmm2, %xmm1
27 sha256rnds2 %xmm0, (%rax), %xmm1
28 sha256rnds2 %xmm0, 0x12(%rax), %xmm1
29 sha256rnds2 %xmm0, (%rax,%rbx,2), %xmm1
30 sha256msg1 %xmm2, %xmm1
31 sha256msg1 (%rax), %xmm1
32 sha256msg1 0x12(%rax), %xmm1
33 sha256msg1 (%rax,%rbx,2), %xmm1
34 sha256msg2 %xmm2, %xmm1
35 sha256msg2 (%rax), %xmm1
36 sha256msg2 0x12(%rax), %xmm1
37 sha256msg2 (%rax,%rbx,2), %xmm1
38
39 .intel_syntax noprefix
40
41 sha1rnds4 xmm1, xmm2, 9
42 sha1rnds4 xmm2, XMMWORD PTR [rax], 7
43 sha1rnds4 xmm3, XMMWORD PTR [rax+0x12], 5
44 sha1rnds4 xmm4, XMMWORD PTR [rax+rbx*2], 1
45 sha1nexte xmm1, xmm2
46 sha1nexte xmm2, XMMWORD PTR [rax]
47 sha1nexte xmm3, XMMWORD PTR [rax+0x12]
48 sha1nexte xmm4, XMMWORD PTR [rax+rbx*2]
49 sha1msg1 xmm1, xmm2
50 sha1msg1 xmm2, XMMWORD PTR [rax]
51 sha1msg1 xmm3, XMMWORD PTR [rax+0x12]
52 sha1msg1 xmm4, XMMWORD PTR [rax+rbx*2]
53 sha1msg2 xmm1, xmm2
54 sha1msg2 xmm2, XMMWORD PTR [rax]
55 sha1msg2 xmm3, XMMWORD PTR [rax+0x12]
56 sha1msg2 xmm4, XMMWORD PTR [rax+rbx*2]
57 sha256rnds2 xmm1, xmm2
58 sha256rnds2 xmm2, XMMWORD PTR [rax]
59 sha256rnds2 xmm3, XMMWORD PTR [rax+0x12]
60 sha256rnds2 xmm4, XMMWORD PTR [rax+rbx*2]
61 sha256rnds2 xmm1, xmm2, xmm0
62 sha256rnds2 xmm2, XMMWORD PTR [rax], xmm0
63 sha256rnds2 xmm3, XMMWORD PTR [rax+0x12], xmm0
64 sha256rnds2 xmm4, XMMWORD PTR [rax+rbx*2], xmm0
65 sha256msg1 xmm1, xmm2
66 sha256msg1 xmm2, XMMWORD PTR [rax]
67 sha256msg1 xmm3, XMMWORD PTR [rax+0x12]
68 sha256msg1 xmm4, XMMWORD PTR [rax+rbx*2]
69 sha256msg2 xmm1, xmm2
70 sha256msg2 xmm2, XMMWORD PTR [rax]
71 sha256msg2 xmm3, XMMWORD PTR [rax+0x12]
72 sha256msg2 xmm4, XMMWORD PTR [rax+rbx*2]
73
This page took 0.120389 seconds and 4 git commands to generate.