#include <stdio.h>
float a[4] = { 300.0, 4.0, 4.0, 12.0 };
float b[4] = { 1.5, 2.5, 3.5, 4.5 };
main()
{
__asm("movups %xmm0, _a");//movups xmm0, a ;
__asm("movups %xmm1, _b");//movups xmm1, b ;
__asm("movups %xmm1, %xmm0");//mulps xmm1, xmm0 ;
__asm("movups _a, %xmm1"); //movups a, xmm1 ;
int x;
for(x=0;x<4;x++)
{
printf("%f\n",a[x]);
}
}
|