assembly SIMD add: make uniform for all ISAs, mark as entry point to learning SIMD

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-12 00:00:04 +00:00
parent b14f68f9bf
commit a13e99ec1c
8 changed files with 162 additions and 202 deletions

View File

@@ -23,7 +23,9 @@ ENTRY
movups %xmm0, output; \
ASSERT_MEMCMP(output, addp ## size ## _expect, $0x10)
/* 4x 32-bit */
TEST(s)
/* 2x 64-bit */
TEST(d)
#undef TEST
EXIT

View File

@@ -1,4 +1,4 @@
/* https://github.com/cirosantilli/linux-kernel-module-cheat#x86-simd
/* https://github.com/cirosantilli/linux-kernel-module-cheat#assembly-simd
*
* Add a bunch of integers in one go.
*
@@ -25,9 +25,14 @@ ENTRY
movups %xmm0, output; \
ASSERT_MEMCMP(output, padd ## size ## _expect, $0x10)
/* 16x 8-bit */
TEST(b)
/* 8x 4-bit */
TEST(w)
/* 4x 8-bit */
/* 4x long */
TEST(d)
/* 2x 16-bit */
TEST(q)
#undef TEST
EXIT