mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-09-22 10:43:39 -04:00
test: nasm-t -- Add crc32 test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
35
travis/test/crc32.asm
Normal file
35
travis/test/crc32.asm
Normal file
@@ -0,0 +1,35 @@
|
||||
bits 16
|
||||
|
||||
crc32 eax,cl
|
||||
crc32 eax,byte [di]
|
||||
crc32 eax,cx
|
||||
crc32 eax,word [di]
|
||||
crc32 eax,ecx
|
||||
crc32 eax,dword [di]
|
||||
|
||||
bits 32
|
||||
align 16
|
||||
|
||||
crc32 eax,cl
|
||||
crc32 eax,byte [edi]
|
||||
crc32 eax,cx
|
||||
crc32 eax,word [edi]
|
||||
crc32 eax,ecx
|
||||
crc32 eax,dword [edi]
|
||||
|
||||
bits 64
|
||||
align 16
|
||||
|
||||
crc32 eax,cl
|
||||
crc32 eax,byte [rdi]
|
||||
crc32 eax,r9b
|
||||
crc32 eax,cx
|
||||
crc32 eax,word [rdi]
|
||||
crc32 eax,ecx
|
||||
crc32 eax,dword [rdi]
|
||||
crc32 rax,cl
|
||||
crc32 rax,byte [rdi]
|
||||
crc32 rax,r9b
|
||||
crc32 rax,rcx
|
||||
crc32 rax,qword [rdi]
|
||||
crc32 rax,r9
|
1
travis/test/crc32.bin.t
Normal file
1
travis/test/crc32.bin.t
Normal file
@@ -0,0 +1 @@
|
||||
<EFBFBD>8<EFBFBD><EFBFBD><EFBFBD>8<EFBFBD><EFBFBD>8<EFBFBD><EFBFBD><EFBFBD>8<EFBFBD>f<EFBFBD>8<EFBFBD><EFBFBD>f<EFBFBD>8<EFBFBD><EFBFBD>8<EFBFBD><EFBFBD><EFBFBD>8<EFBFBD>f<EFBFBD>8<EFBFBD><EFBFBD>f<EFBFBD>8<EFBFBD><EFBFBD>8<EFBFBD><EFBFBD><EFBFBD>8<EFBFBD><EFBFBD>8<EFBFBD><EFBFBD><EFBFBD>8<EFBFBD><EFBFBD>A8<EFBFBD><EFBFBD>f<EFBFBD>8<EFBFBD><EFBFBD>f<EFBFBD>8<EFBFBD><EFBFBD>8<EFBFBD><EFBFBD><EFBFBD>8<EFBFBD><EFBFBD>H8<EFBFBD><EFBFBD><EFBFBD>H8<EFBFBD><EFBFBD>I8<EFBFBD><EFBFBD><EFBFBD>H8<EFBFBD><EFBFBD><EFBFBD>H8<EFBFBD><EFBFBD>I8<EFBFBD><EFBFBD>
|
11
travis/test/crc32.json
Normal file
11
travis/test/crc32.json
Normal file
@@ -0,0 +1,11 @@
|
||||
[
|
||||
{
|
||||
"description": "Test crc32 instruction",
|
||||
"id": "crc32",
|
||||
"format": "bin",
|
||||
"source": "crc32.asm",
|
||||
"target": [
|
||||
{ "output": "crc32.bin" }
|
||||
]
|
||||
}
|
||||
]
|
Reference in New Issue
Block a user