diff options
author | Jin Kyu Song <jin.kyu.song@intel.com> | 2013-10-15 20:49:54 -0700 |
---|---|---|
committer | Jin Kyu Song <jin.kyu.song@intel.com> | 2013-11-20 11:29:42 -0800 |
commit | c7fcf6d5161d698f8ad14ed99b691ecb6af83f08 (patch) | |
tree | 290b49e1fe97869ca3839680a11e697a95da9014 /test | |
parent | da1a5cd5145f8dc67d00589af73a956627d1ac54 (diff) | |
download | nasm-c7fcf6d5161d698f8ad14ed99b691ecb6af83f08.tar.gz nasm-c7fcf6d5161d698f8ad14ed99b691ecb6af83f08.tar.bz2 nasm-c7fcf6d5161d698f8ad14ed99b691ecb6af83f08.zip |
SHA: SHA test cases
32bit and 64bit test asm files.
Signed-off-by: Jin Kyu Song <jin.kyu.song@intel.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/sha-64.asm | 30 | ||||
-rw-r--r-- | test/sha.asm | 31 |
2 files changed, 61 insertions, 0 deletions
diff --git a/test/sha-64.asm b/test/sha-64.asm new file mode 100644 index 0000000..6cce663 --- /dev/null +++ b/test/sha-64.asm @@ -0,0 +1,30 @@ +;Testname=sha-64; Arguments=-felf64 -osha-64.o -O0; Files=stdout stderr sha-64.o +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] diff --git a/test/sha.asm b/test/sha.asm new file mode 100644 index 0000000..684cadd --- /dev/null +++ b/test/sha.asm @@ -0,0 +1,31 @@ +;Testname=sha; Arguments=-felf -osha.o -O0; Files=stdout stderr sha.o +BITS 32 + + sha1rnds4 xmm1, xmm2, 9 + sha1rnds4 xmm2, [eax], 7 + sha1rnds4 xmm3, [eax+0x12], 5 + sha1rnds4 xmm4, [eax+ebx*2], 1 + sha1nexte xmm1, xmm2 + sha1nexte xmm2, [eax] + sha1nexte xmm3, [eax+0x12] + sha1nexte xmm4, [eax+ebx*2] + sha1msg1 xmm1, xmm2 + sha1msg1 xmm2, [eax] + sha1msg1 xmm3, [eax+0x12] + sha1msg1 xmm4, [eax+ebx*2] + sha1msg2 xmm1, xmm2 + sha1msg2 xmm2, [eax] + sha1msg2 xmm3, [eax+0x12] + sha1msg2 xmm4, [eax+ebx*2] + sha256rnds2 xmm1, xmm2, xmm0 + sha256rnds2 xmm2, [eax], xmm0 + sha256rnds2 xmm3, [eax+0x12], xmm0 + sha256rnds2 xmm4, [eax+ebx*2], xmm0 + sha256msg1 xmm1, xmm2 + sha256msg1 xmm2, [eax] + sha256msg1 xmm3, [eax+0x12] + sha256msg1 xmm4, [eax+ebx*2] + sha256msg2 xmm1, xmm2 + sha256msg2 xmm2, [eax] + sha256msg2 xmm3, [eax+0x12] + sha256msg2 xmm4, [eax+ebx*2] |