We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to write a custom instruction that does matrix multiplication. I pre loaded the rows of matrix B into the vector registers shown below: asm volatile( "vsetvli t0, %[col_b], e32, m1\n\t" "vle32.v v0, (%[B1])\n\t" "vle32.v v1, (%[B2])\n\t" "vle32.v v2, (%[B3])\n\t" "vle32.v v3, (%[B4])\n\t" : : [B1] "r" (&B_inp[0]), [B2] "r" (&B_inp[colB]), [B3] "r" (&B_inp[2colB]), [B4] "r" (&B_inp[3colB]), [col_b] "r" (vmax) : "t0", "v0", "v1", "v2", "v3", "memory" );
How do I access these registers in the .h header file for my custom instruction in riscv-isa-sim/riscv/insns.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am trying to write a custom instruction that does matrix multiplication. I pre loaded the rows of matrix B into the vector registers shown below:
asm volatile(
"vsetvli t0, %[col_b], e32, m1\n\t"
"vle32.v v0, (%[B1])\n\t"
"vle32.v v1, (%[B2])\n\t"
"vle32.v v2, (%[B3])\n\t"
"vle32.v v3, (%[B4])\n\t"
:
: [B1] "r" (&B_inp[0]), [B2] "r" (&B_inp[colB]), [B3] "r" (&B_inp[2colB]), [B4] "r" (&B_inp[3colB]), [col_b] "r" (vmax)
: "t0", "v0", "v1", "v2", "v3", "memory"
);
How do I access these registers in the .h header file for my custom instruction in riscv-isa-sim/riscv/insns.
The text was updated successfully, but these errors were encountered: