Commit | Line | Data |
---|---|---|
9344ff29 L |
1 | # Check crc32 in SSE4.2 |
2 | ||
3 | .text | |
4 | foo: | |
5 | ||
6 | crc32b (%esi), %eax | |
7 | crc32w (%esi), %eax | |
8 | crc32l (%esi), %eax | |
9344ff29 L |
9 | crc32 %al, %eax |
10 | crc32b %al, %eax | |
11 | crc32 %ax, %eax | |
12 | crc32w %ax, %eax | |
13 | crc32 %eax, %eax | |
14 | crc32l %eax, %eax | |
15 | ||
16 | .intel_syntax noprefix | |
9344ff29 | 17 | crc32 eax,byte ptr [esi] |
9344ff29 | 18 | crc32 eax, word ptr [esi] |
9344ff29 L |
19 | crc32 eax,dword ptr [esi] |
20 | crc32 eax,al | |
9344ff29 | 21 | crc32 eax, ax |
9344ff29 | 22 | crc32 eax,eax |
9344ff29 L |
23 | |
24 | .p2align 4,0 |