How can I use simd in MIPS?

405 views Asked by At

I have installed mipsel-linux-gcc in the pictrue

enter image description here Now I have a file simd.c

#include<stdio.h>
#include"simdType.h"
int main()
{

v4i32 m,t;
v4f32 a,b,c,s;
a=b+c;
t=b<c;
s = __builtin_shuffle(b,c,m);
return 0;
}

then I run this command:

mipsel-linux-gcc -S simd.c -mfp64 -Wa,-mmsa -mhard-float 

then I get simd.s, but it's not in simd format. Who can help me ? Thanks!

0

There are 0 answers