mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-29 13:04:27 +01:00
assembly SIMD add: make uniform for all ISAs, mark as entry point to learning SIMD
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user