On Okt 14 2024, Andrew Waterman wrote:
> On Mon, Oct 14, 2024 at 8:54 AM test user <
testu...@gmail.com> wrote:
>
>> For example, we want to remove MUL instruction and keep only ADD as
>> multiplication is repeated addition. I want to remove MUL and have branch
>> instructions and ADD, SUB instructions only. Is there a way to directly do
>> it through arguments or do I have to change anything in the binutils and
>> recompile the gcc? Can someone help me here please.
>>
>
> The RISC-V GCC port doesn't have a general mechanism to disable emission of
> specific instructions.
For MUL, which is its own extension (Zmmul), this is possible though.
--
Andreas Schwab, SUSE Labs,
sch...@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."