aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/external/lua-5.4.0-tests/heavy.lua
diff options
context:
space:
mode:
author lemon<lsof@mailbox.org>2025-12-06 18:59:53 +0100
committer lemon<lsof@mailbox.org>2025-12-06 18:59:53 +0100
commitf7d68175fc2b52230b8f78bf78145c7f1d0ad9c5 (patch)
tree099243c78aaef479daee0b2ab5e8dc8215cea9e3 /test/external/lua-5.4.0-tests/heavy.lua
parentd82f3052c813f671561362126d0fbe08568542d3 (diff)
abi: fix aggregate passed by regs 2nd reg offset
It was broken for example `struct { i32 a; f64 b; }` (would try to load/store b from byte offset 4, not 8). Introduce r2off, realize in x86-64 it's always 8; even `struct {i32 a; f32 b;}` gets passed in one (integer) register. But not so in (future) ABIs like RISC-V, I believe there `{i32, f32}` would get passed in 1 integer and 1 float register (r2off = 4).
Diffstat (limited to 'test/external/lua-5.4.0-tests/heavy.lua')
0 files changed, 0 insertions, 0 deletions