[Libre-soc-bugs] [Bug 1044] SVP64 implementation of pow(x,y,z)
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Tue Oct 17 08:49:30 BST 2023
https://bugs.libre-soc.org/show_bug.cgi?id=1044
--- Comment #62 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Jacob Lifshay from comment #59)
> I ran into an issue: I'm trying to use:
> svremap 0o10, 0, 0, 0, 0, 0, 0 # enable SVSHAPE0 for RT
> # q[j] = qhat
> sv.or 4, 12, 12 # note all of RT, RA, and RB are scalar
>
> I expected the REMAP in SVSHAPE0 to apply to RT, but it seems like it
> doesn't.
no, it doesn't. this is deliberate.
> I think REMAP should apply to scalar operands when there's a sv-prefix (but
> not sv-single-prefix).
no.
> This seems useful to me so you can e.g. extract the
> 2nd element in a byte vector by using SVSHAPE.offset or other times you'd
> want to use a REMAP-ped index.
>
> For now, I'll use sv.or/m=1<<r3 *4, 12, 12
yes that's how to index a single element.
> but that workaround forces me to put the index in r3 which means I can't
> keep anything else there for that instruction.
indeed.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list