Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

about compressed instruction && RVV support #379

Open
GMYMingyu opened this issue Nov 1, 2023 · 2 comments
Open

about compressed instruction && RVV support #379

GMYMingyu opened this issue Nov 1, 2023 · 2 comments

Comments

@GMYMingyu
Copy link

Hi, all,
I currently working on the riscv-dv assembly generation to do the compressed and RVV instruction verification.
The rtl code is built on a modified 9.3.0 GCC. So I need the gloden GCC of 9.3.0.
I want to verif RVV instruction, but GCC 9.3.0https://ftp.gnu.org/gnu/gcc/gcc-9.3.0 does not support RVV yet. So I upgrade the golden GCC to 11.1.0. However, GCC 9.3.0 and GCC 11.1.0 have different optimizations to compressed instructions. In other words, GCC9.3.0 may not compress one instruction but GCC 11.1.0 will compress it.

I would really appreciate it if anyone can give me some hints about the following questions:

  1. Does there exist compressed optimization option for GCC? is it possible to set the instruction compression level?
  2. Does GCC9.3.0 support RVV?

How I compile GCC9.3.0:
39617398f366a6779837c59f92483bb

@zhongjuzhe
Copy link
Collaborator

You mean you want to disable compressed instruction ? you can specify --with-arch = rv64gv

@GMYMingyu
Copy link
Author

You mean you want to disable compressed instruction ? you can specify --with-arch = rv64gv

Thanks for your reply.
I would like to turn off the optimization of the compressed instructions. So that only compressed instructions will be compressed. In my tests, using more recent GCC versions resulted in the compression of more instructions(for a same assembly file).
But I thought it is unrealistic. Anyway, I will close this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants