#include // Result goes in the first argument void mul_arrays(float *dest, float *other); asm( "mul_arrays: \n" " vmovaps (%rdi), %ymm0\n" " vmovaps (%rsi), %ymm1\n" " vmulps %ymm0, %ymm1, %ymm2\n" " vmovaps %ymm2, (%rdi)\n" " ret"); int main(){ float a1[] = {1, 2, 3, 4, 5, 6, 7, 8}; float a2[] = {2.0, 4.0, 2.0, 4.0, 2.0, 4.0, 2.0, 4.0}; mul_arrays(a1, a2); for(int i = 0; i < 8; i++){ printf("%lf ", a1[i]); } printf("\n"); return 0; }