riscvarchive / riscv-binutils-gdb

RISC-V backports for binutils-gdb. Development is done upstream at the FSF.
GNU General Public License v2.0
147 stars 233 forks source link

Support Zv* sub extensions in rvv-0.9.x branch #200

Closed Nelson1225 closed 4 years ago

Nelson1225 commented 4 years ago

There are four Z sub-extensions for vector, Zvamo, Zvediv, Zvlsseg and Zvqmac. The vector base is present before adding any of current Zv* extensions.

jim-wilson commented 4 years ago

I'm assuming two patches cherry picked from the FSF tree, and I only need to review the one new one.

Nelson1225 commented 4 years ago

All fixed. The first and second commits are picked from upstream. I move the zvediv extension checking into the mygetVsetvliExpression in the third commit. And replace some magic constants with the OP* masks for my_getVsetvliExpression in the forth commit.

Thanks a lot :)