From d418c4b8c4cdf0fcbab24ba45866b90a000b3d09 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 28 Nov 2024 21:06:04 +0900 Subject: [PATCH] [gamecode] Tweak matrix product instruction names The name for VMMUL was outright wrong (outer), but both MVMUL and VMMUL can be mul because of the type and width/columns specifiers. I think OUTER can too, but I'll leave that for now. --- libs/gamecode/opcodes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/gamecode/opcodes.py b/libs/gamecode/opcodes.py index 2d45c77e6..896d11b38 100644 --- a/libs/gamecode/opcodes.py +++ b/libs/gamecode/opcodes.py @@ -370,8 +370,8 @@ matmul_formats = { } matvec_formats = { "opcode": "OP_MVMUL_{mat_dim[1][d][dd]}{mat_dim[0][d][dd]}_{mat_type[t]}", - "mnemonic": "mvmul", - "opname": "mvmul", + "mnemonic": "mul", + "opname": "mul", "widths": "{mat_dim[0][d][dd]}, {mat_dim[1][d][dd]}, {mat_dim[0][d][dd]}", "columns": "{mat_dim[1][d][dd]}, 1, 1", "types": "{mat_types[t]}, {mat_types[t]}, {mat_types[t]}", @@ -661,8 +661,8 @@ udivops_formats = { } vecmat_formats = { "opcode": "OP_VMMUL_{mat_dim[1][d][dd]}{mat_dim[0][d][dd]}_{mat_type[t]}", - "mnemonic": "outer", - "opname": "outer", + "mnemonic": "mul", + "opname": "mul", "widths": "{mat_dim[0][d][dd]}, {mat_dim[1][d][dd]}, 0", "columns": "1, {mat_dim[1][d][dd]}, 1", "types": "{mat_types[t]}, {mat_types[t]}, {mat_types[t]}",