Displaying 2 results from an estimated 2 matches for "fixumul".
Did you mean:
fixsmul
2018 Aug 22
2
Fixed Point Support in LLVM
...mplement and understand. Like so:
llvm.ssat.iN(iN A, i32 SatWidth) = saturate anything above SatWidth bits
as a signed value
llvm.usat.iN(iN B, i32 SatWidth) = saturate anything above SatWidth bits
as an unsigned value
llvm.fixsmul.iN(iN A, iN B, i32 Scale) = sext->mul->ashr->trunc
llvm.fixumul.iN(iN A, iN B, i32 Scale) = zext->mul->lshr->trunc
llvm.fixsmul.sat.iN(iN A, iN B, i32 Scale) = sext->mul->ashr->ssat->trunc
llvm.fixumul.sat.iN(iN A, iN B, i32 Scale) = zext->mul->lshr->usat->trunc
llvm.sadd.sat.iN(iN A, iN B) = saddo->check sign&ovf->sel...
2018 Aug 22
2
Fixed Point Support in LLVM
On 2018-08-22 05:56, John McCall via llvm-dev wrote:
>> On Aug 21, 2018, at 6:20 PM, Leonard Chan <leonardchan at google.com> wrote:
>> If we were to create a new type down the line, I think the main
>> features that would distinguish them from other types are the
>> arbitrary width and scale. Saturation can be handled through
>> instructions since saturation