If you use either option to disable defaulting to C-instructions, will c.addi still be a valid opcode?
Maybe I should rephrase. Will either of the suggested options stop defaulting to C-instructions or disable support for C-instructions all together?
Thanks,
Richard
email to sw-dev+unsubscribe@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at
To view this discussion on the web visit
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+unsubscribe@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/CA%2B%2B6G0AsYp0rbqDqWHuqY8aBHxz_6Z58PrVm1dp3DDJFAyuj7g%40mail.gmail.com.
In both cases GAS will reject the instructions.If you want to restrict GAS to compress only certain instructions, I'd recommend writing .option norvc initially; then for each code segment you want to allow C instructions, write .option push; .option rvc; c.addi a0,1; c.slli a0, 1; .option pop. It's extremely verbose, but it does the right thing.
email to sw-dev+un...@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at
To view this discussion on the web visit
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/CA%2B%2B6G0AsYp0rbqDqWHuqY8aBHxz_6Z58PrVm1dp3DDJFAyuj7g%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+unsubscribe@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/CA%2B%2B6G0DiR%3D2dfm8KJM1D3xdqRN9rucy__7FbSUT%3DohmmbjX0MQ%40mail.gmail.com.