Xi Ruoyao 04f6fa310d
mips: Fix N32 ABI return value handling (#813)
In N32 ABI, 8-bit or 16-bit integers should be extended following the
signedness of the integer, but 32-bit integers should always be
sign-extended to 64-bit (note that N32 ABI only works on 64-bit CPUs).

So handling this in everything using libffi would be nasty.  And the
libffi code for architectures with a similar rule (LoongArch & RISC-V)
also properly handle this.  Let's do this work in libffi for MIPS N32
too.

This fixes two failures in Python 3.12.1 ctypes test.
2024-02-15 07:52:13 -05:00
..
2017-04-27 13:22:28 +02:00
2023-02-17 20:33:47 -05:00
2017-04-27 13:22:28 +02:00
2020-06-29 08:04:45 -04:00
2018-09-18 15:19:53 +02:00
2023-09-04 07:27:01 -04:00
2022-05-29 10:12:30 -04:00
2017-04-27 13:22:28 +02:00
2017-04-27 13:22:28 +02:00
2018-09-18 15:19:53 +02:00
2017-04-27 13:22:28 +02:00
2017-04-27 13:22:28 +02:00
2023-02-02 07:04:55 -05:00
2014-12-19 11:38:17 -05:00
2013-10-08 06:45:51 -04:00
2012-03-19 23:07:35 -04:00
2013-10-08 06:45:51 -04:00
2017-04-27 13:22:28 +02:00
2023-12-22 05:30:50 -05:00
2023-12-22 05:30:50 -05:00
2023-12-22 05:30:50 -05:00
2023-12-22 05:30:50 -05:00
2017-04-27 13:22:28 +02:00
2017-04-27 13:22:28 +02:00
2023-12-22 05:30:50 -05:00
2018-04-02 06:55:31 -05:00