[Libre-soc-bugs] [Bug 238] POWER Compressed Formal Standard writeup

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Mon Nov 16 01:06:00 GMT 2020


https://bugs.libre-soc.org/show_bug.cgi?id=238

--- Comment #15 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Jacob Lifshay from comment #12)

> ...
>     25 ldu r1,1(r1)
> ...
>     207 stdu r1,1(r1)
>     225 std r0,1(r1)
>     284 mflr r0
>     285 add r1,r1,r1
>     304 lbz r1,1(r1)
>     326 mtlr r0
>     327 ld r0,1(r1)
>     343 blr
>     406 lwa r1,1(r1)
>     466 extsw r1,r1
>     649 stw r1,1(r1)
>     691 lwz r1,1(r1)
>     705 cmpdi r1,1
>     791 cmpwi r1,1
>     794 addis r1,r1,1
>    1474 std r1,1(r1)
>    1846 li r1,1
>    2031 mr r1,r1
>    2473 addi r1,r1,1
>    3012 nop
>    3028 ld r1,1(r1)

this is really handy.

ld immediate clearly at the top.  li is a compound pseudo op, also at the top. 
mv, addi/s, make sense.  extsw not so much.

cmp immediate i wasn't expecting.  will add that.

 lots involving link register and blr, clearly that is for function calls.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list