tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] Questions about commit 5b28165: Fix test 131 for 32 bits


From: Ziyao
Subject: [Tinycc-devel] Questions about commit 5b28165: Fix test 131 for 32 bits targets
Date: Sat, 08 Jul 2023 00:15:10 +0800

Hi,

I noticed that test 131 (authored by me) has been modified
in commit 5b28165: Fix test 131 for 32 bits targets:
struct with two long int members are replaced by long long
int ones.

Test 131 (return struct in registers) is intended to test
whether functions return small structs (maybe passed in
registers in some ABIs) are handled properly.

long long int on 32bit targets seem to be 8 bytes, right?
And AFAIK, many ABIs only pass structs with 2 * WORDLENGTH
size in registers (for 32-bit architectures, it is 8-bytes
and is equal to the size of a struct with two long int
members.)

Is this fix necessary?

--
Ziyao



reply via email to

[Prev in Thread] Current Thread [Next in Thread]