[llvm-bugs] [Bug 27356] [ppc] missed chance to use rlwnm
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Sep 1 19:36:02 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=27356
Hal Finkel <hfinkel at anl.gov> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Hal Finkel <hfinkel at anl.gov> ---
(In reply to comment #1)
> (In reply to comment #0)
> > Double-check to make sure because my PPC is beyond rusty, but I think this
> > is:
> >
> > subfic r4, r4, 32
> > rlwnm r3, r3, r4, 31, 31
>
> Yes. I've used cvc4 to verify that this is true (assuming that y < 32 --
> three cheers for undefined behavior!).
>
> Also, for y < 64, we also can use rldcl(x, subfic(y, 64), 63).
Patterns added in r280454. Thanks!
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160902/75b3fe77/attachment.html>
More information about the llvm-bugs
mailing list