//fles_test
__STATIC_FORCEINLINE int fles_test(float a,float b)
{
int zero = 0;
asm volatile (
"fle.s %0, %1, %2\n\t"
:"=r"(zero)
:"f"(a),"f"(b)
);
return zero;
}
//fclass_test
__STATIC_FORCEINLINE int fclass_test(float a)
{
int zero = 0;
asm volatile (
"fclass.s %0, %1\n\t"
:"=r"(zero)
:"f"(a)
);
return zero;
}
//fsgnjs_test
__STATIC_FORCEINLINE float fsgnjs_test(float a,float b)
{
float zero = 0;
asm volatile (
"fsgnj.s %0, %1, %2\n\t"
:"=f"(zero)
:"f"(a),"f"(b)
);
return zero;
}
//fsgnjns_test
__STATIC_FORCEINLINE float fsgnjns_test(float a,float b)
{
float zero = 0;
asm volatile (
"fsgnjn.s %0, %1, %2\n\t"
:"=f"(zero)
:"f"(a),"f"(b)
);
return zero;
}
//fsgnjxs_test
__STATIC_FORCEINLINE float fsgnjxs_test(float a,float b)
{
float zero = 0;
asm volatile (
"fsgnjx.s %0, %1, %2\n\t"
:"=f"(zero)
:"f"(a),"f"(b)
);
return zero;
}
//fcvts_sw_test
__STATIC_FORCEINLINE float fcvts_sw_test(int a)
{
float zero = 0;
asm volatile (
"fcvt.s.w %0, %1\n\t"
:"=f"(zero)
:"r"(a)
);
return zero;
}
//fcvts_swu_test
__STATIC_FORCEINLINE float fcvts_swu_test(unsigned int a)
{
float zero = 0;
asm volatile (
"fcvt.s.wu %0, %1\n\t"
:"=f"(zero)
:"r"(a)
);
return zero;
}