]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/testsuite/gas/i386/keylocker.s
Enable support to Intel Keylocker instructions
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / i386 / keylocker.s
1 # Check 32bit KEYLOCKER instructions
2
3 .text
4 _start:
5 loadiwkey %xmm2, %xmm6
6 encodekey128 %eax, %edx
7 encodekey256 %eax, %edx
8
9 aesenc128kl 126(%edx), %xmm2
10 aesenc256kl 126(%edx), %xmm2
11 aesdec128kl 126(%edx), %xmm2
12 aesdec256kl 126(%edx), %xmm2
13
14 aesencwide128kl 126(%edx)
15 aesencwide256kl 126(%edx)
16 aesdecwide128kl 126(%edx)
17 aesdecwide256kl 126(%edx)
18
19 .intel_syntax noprefix
20
21 loadiwkey xmm6, xmm2
22 encodekey128 edx, eax
23 encodekey256 edx, eax
24
25 aesenc128kl xmm2, [edx+126]
26 aesenc256kl xmm2, [edx+126]
27 aesdec128kl xmm2, [edx+126]
28 aesdec256kl xmm2, [edx+126]
29
30 aesencwide128kl [edx+126]
31 aesencwide256kl [edx+126]
32 aesdecwide128kl [edx+126]
33 aesdecwide256kl [edx+126]