aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/11-abi.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-03-27 13:58:44 +0100
committerlemon <lsof@mailbox.org>2026-03-27 13:58:44 +0100
commitb8dea129488959adeadc2e444d769f2a2ac709d8 (patch)
tree98508423f9a952e6dea1001d7032b7be324abcd6 /test/11-abi.c
parent20dc93c4473a5d5a53462fff09a74b2839d10d6b (diff)
x86-64: redzone optimization for leaf functions
Don't use frame pointer or explicitly modify stack pointer for these
Diffstat (limited to 'test/11-abi.c')
-rw-r--r--test/11-abi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/11-abi.c b/test/11-abi.c
index fcda498..5f9324f 100644
--- a/test/11-abi.c
+++ b/test/11-abi.c
@@ -24,7 +24,7 @@ union fi { float f; int i; };
struct hs { float x[10]; };
-struct hs g(float a, float b, float c, struct f2 d, union fi e, double z) {
+struct hs g(float a, float b, float c, struct f2 d, union fi e, double q, double qq, double qqq, double z) {
printf("%f %f %f {%f,%f} ", a, b, c, d.f[0], d.f[1]);
printf("%f(%xh) %f\n", e.f, e.i, z);
return (struct hs){-1.0f};
@@ -33,7 +33,7 @@ struct hs g(float a, float b, float c, struct f2 d, union fi e, double z) {
int main() {
struct ll a = f(1,2,(struct l){3},4,5,6, NULL, (struct x){9}, "abcdef");
printf(": %ld, %ld\n", a.a, a.b);
- struct hs h = g(1.0f, 2.0, 3.0f, (struct f2){4.0,5.0}, (union fi){-0.0f}, 99.f);
+ struct hs h = g(1.0f, 2.0, 3.0f, (struct f2){4.0,5.0}, (union fi){-0.0f}, 0,0,0, 99.f);
printf(": %f\n", h.x[0]);
}