Debian Codegraph @

test/crc32.asm

raw
1 ;Testname=test; Arguments=-fbin -ocrc32.bin; Files=stdout stderr crc32.bin
2
3 %ifndef BITS
4 %define BITS 64
5 %endif
6
7 bits BITS
8
9 %if __?BITS?__ == 16
10
11 crc32 eax,cl
12 crc32 eax,byte [di]
13 crc32 eax,cx
14 crc32 eax,word [di]
15 crc32 eax,ecx
16 crc32 eax,dword [di]
17
18 %elif __?BITS?__ == 32
19
20 crc32 eax,cl
21 crc32 eax,byte [edi]
22 crc32 eax,cx
23 crc32 eax,word [edi]
24 crc32 eax,ecx
25 crc32 eax,dword [edi]
26
27 %else
28 crc32 eax,cl
29 crc32 eax,byte [rdi]
30 crc32 eax,r9b
31 crc32 eax,cx
32 crc32 eax,word [rdi]
33 crc32 eax,ecx
34 crc32 eax,dword [rdi]
35 crc32 rax,cl
36 crc32 rax,byte [rdi]
37 crc32 rax,r9b
38 crc32 rax,rcx
39 crc32 rax,qword [rdi]
40 crc32 rax,r9
41 %endif