-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
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
Maybe the vmv. x.s instruction seems to have problems in certain specific situations #241
Comments
I am quite anxious about this issue, and I would greatly appreciate it if you could help me take a look! |
Yes, like you, I also encountered this problem. I wrote the LeNet-5 program in C language, and when gcc -O3 automatic vectorization was enabled, the vmv.x.s instruction would get stuck.
|
Hello, thanks a lot for reporting! Can you please provide a similar example that easily reproducible, so that I can fix the bug? For example, a Thank you, |
Let me know if #342 fixes the issue! |
My native language is not English, and there may be some issues with my expression. I apologize to you.
This issue was discovered when I tested the assembly code generated by automatic vectorization using riscv32-unknown-elf-gcc.
Fistly
My C code is as follows:
Because I am not proficient in assembly writing, I generate an automatic vectorization "matrix multiplication vector" function written using RISC-V V assembly.
Secondly I use commands
“riscv32-unknown-elf-gcc -S -O3 -march=rv32imacv matrix_mul_vect.c”
to generate. S file:
Finally, I put the compiled assembly into the test file.
Normally, it should print out a vector, but it doesn't.
I noticed he got stuck in vmv.x.s.
I also tried a lot of code using automatic vectorization, and they all encountered the same problem as above.
Why???
Thank you for seeing this. If you could help me solve the problem, that would be even better!
The text was updated successfully, but these errors were encountered: