Closed tkoenig1 closed 1 year ago
Do you know of any LLVM target that does this?
There is x86_64 https://godbolt.org/z/c1YavEqhj , ARM v8, where they use add+shift https://godbolt.org/z/j7TeoYexP . RISC-V uses shift and add, two instructions https://godbolt.org/z/67n4GnnP9 .
Try again with commit af7ee91ac91db0ac489c686eb35daf15ceb1f32f
Implemented, also works for signed.
Great!
Everybody's favorite micro-optimization. Probably saves some cycles, but, for My66000, no instructions.
gets
etc, but could use
instead.