From 90b4e27bb277d60aab8e6957837460ca6f797008 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sun, 3 Mar 2024 19:19:05 -0400 Subject: [PATCH] agx: use funop short form noticed comparing asm with the blob total bytes in shared programs: 14112726 -> 13986278 (-0.90%) bytes in affected programs: 10848000 -> 10721552 (-1.17%) helped: 9115 HURT: 0 Bytes are helped. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_opcodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/asahi/compiler/agx_opcodes.py b/src/asahi/compiler/agx_opcodes.py index 59bc0b8fdbb..3dd027a1597 100644 --- a/src/asahi/compiler/agx_opcodes.py +++ b/src/asahi/compiler/agx_opcodes.py @@ -171,8 +171,8 @@ FUNOP = lambda x: (x << 28) FUNOP_MASK = FUNOP((1 << 14) - 1) def funop(name, opcode, schedule_class = "none"): - op(name, (0x0A | L | (opcode << 28), - 0x3F | L | (((1 << 14) - 1) << 28), 6, _), + op(name, (0x0A | (opcode << 28), + 0x3F | (((1 << 14) - 1) << 28), 4, 6), srcs = 1, is_float = True, schedule_class = schedule_class) def iunop(name, opcode):