[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 03:24:08 GMT 2020


--- Comment #20 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #19)
> (In reply to Jacob Lifshay from comment #17)
> > extsw is required for passing a signed 32-bit int according to the Power
> > ABI, most instructions don't sign-extend their result (they often leave the
> > upper 32-bits undefined) so extsw is required.
> yuk.  ok that explains it.  i added extsb for no good reason.

signed 8 and 16-bit integers have the same issue. unsigned integers also
require zero-extension. maybe we should add all the sign/zero extension

See: https://gcc.godbolt.org/z/9n48Gh

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

More information about the libre-soc-bugs mailing list