mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-18 16:25:05 +08:00
test: nasm-t -- Add sha-64 test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
7642fefb14
commit
ad6cb7c01b
29
travis/test/sha-64.asm
Normal file
29
travis/test/sha-64.asm
Normal file
@ -0,0 +1,29 @@
|
||||
BITS 64
|
||||
sha1rnds4 xmm1, xmm2, 9
|
||||
sha1rnds4 xmm2, [rax], 7
|
||||
sha1rnds4 xmm3, [rax+0x12], 5
|
||||
sha1rnds4 xmm4, [rax+rbx*2], 1
|
||||
sha1nexte xmm1, xmm2
|
||||
sha1nexte xmm2, [rax]
|
||||
sha1nexte xmm3, [rax+0x12]
|
||||
sha1nexte xmm4, [rax+rbx*2]
|
||||
sha1msg1 xmm1, xmm2
|
||||
sha1msg1 xmm2, [rax]
|
||||
sha1msg1 xmm3, [rax+0x12]
|
||||
sha1msg1 xmm4, [rax+rbx*2]
|
||||
sha1msg2 xmm1, xmm2
|
||||
sha1msg2 xmm2, [rax]
|
||||
sha1msg2 xmm3, [rax+0x12]
|
||||
sha1msg2 xmm4, [rax+rbx*2]
|
||||
sha256rnds2 xmm1, xmm2, xmm0
|
||||
sha256rnds2 xmm2, [rax], xmm0
|
||||
sha256rnds2 xmm3, [rax+0x12], xmm0
|
||||
sha256rnds2 xmm4, [rax+rbx*2], xmm0
|
||||
sha256msg1 xmm1, xmm2
|
||||
sha256msg1 xmm2, [rax]
|
||||
sha256msg1 xmm3, [rax+0x12]
|
||||
sha256msg1 xmm4, [rax+rbx*2]
|
||||
sha256msg2 xmm1, xmm2
|
||||
sha256msg2 xmm2, [rax]
|
||||
sha256msg2 xmm3, [rax+0x12]
|
||||
sha256msg2 xmm4, [rax+rbx*2]
|
12
travis/test/sha-64.json
Normal file
12
travis/test/sha-64.json
Normal file
@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"description": "Check sha instructions in 64 bit mode",
|
||||
"id": "sha-64",
|
||||
"format": "elf64",
|
||||
"source": "sha-64.asm",
|
||||
"option": "-O0",
|
||||
"target": [
|
||||
{ "output": "sha-64.o" }
|
||||
]
|
||||
}
|
||||
]
|
BIN
travis/test/sha-64.o.t
Normal file
BIN
travis/test/sha-64.o.t
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user