shecc icon indicating copy to clipboard operation
shecc copied to clipboard

Allow riscv-codegen to generate executable mul instruction without RV32M

Open oucs638 opened this issue 3 years ago • 1 comments

Add new compiler option +m/-m as the switch to take whether m extension or not. Check the global variable "use_m_ext" before riscv-codegen going to call __mul()/__div()/__mod(). If there is no m extension, replace __mul()/__div()/__mod() with __addi(zero, zero, 0) as the no operation in riscv.

oucs638 avatar Jul 31 '22 21:07 oucs638

Please remove generated file mul_test

eecheng87 avatar Aug 01 '22 11:08 eecheng87

@oucs638, would you rework this patch?

jserv avatar Nov 11 '22 10:11 jserv

The proposed change was far away from the mainline. Drop it.

jserv avatar Oct 27 '23 12:10 jserv