Initial LsPower implementation
This commit is contained in:
11
.venv/Lib/site-packages/numpy/distutils/checks/cpu_lsx.c
Normal file
11
.venv/Lib/site-packages/numpy/distutils/checks/cpu_lsx.c
Normal file
@@ -0,0 +1,11 @@
|
||||
#ifndef __loongarch_sx
|
||||
#error "HOST/ARCH doesn't support LSX"
|
||||
#endif
|
||||
|
||||
#include <lsxintrin.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
__m128i a = __lsx_vadd_d(__lsx_vldi(0), __lsx_vldi(0));
|
||||
return __lsx_vpickve2gr_w(a, 0);
|
||||
}
|
||||
Reference in New Issue
Block a user