mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-14 16:59:17 +00:00
userspace: add SIMD test application
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
11
Userspace/apps/test/simd_test/simd.c
Normal file
11
Userspace/apps/test/simd_test/simd.c
Normal file
@ -0,0 +1,11 @@
|
||||
int main(int, char *argv[], char *[])
|
||||
{
|
||||
#if defined(__amd64__) || defined(__i386__)
|
||||
__asm__ __volatile__("movaps (%0), %%xmm0\n"
|
||||
"movaps %%xmm0, (%0)\n"
|
||||
: : "r"(argv) : "memory");
|
||||
#else
|
||||
#warning "Unimplemented"
|
||||
#endif
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user