OpenCores
no use no use 1/1 no use no use
OR1K compiler emit mult and div
by firefalcon on May 27, 2016
firefalcon
Posts: 99
Joined: Jan 10, 2011
Last seen: Mar 26, 2024
Is there a way to get the or1k-elf compiler to emit multiply and divide instructions? So far, I have had to resort to hand-coded assembly inlines.
RE: OR1K compiler emit mult and div
by dgisselq on May 28, 2016
dgisselq
Posts: 247
Joined: Feb 20, 2015
Last seen: Jul 15, 2022
Yes, there is a way.

Try running the compiler with the options:

    or1k-elf -mhard-div -mhard-mul

Thanks to Olof for the answer.

Dan

no use no use 1/1 no use no use
© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.