From a5b6ff3ccc72204b2f11f017be9dbb13b501bdd7 Mon Sep 17 00:00:00 2001 From: Mary Guillemard Date: Sun, 7 Jan 2024 17:35:37 +0100 Subject: [PATCH] agx: Add more bitops in agx_bitop_table Signed-off-by: Mary Guillemard Part-of: --- src/asahi/compiler/agx_builder.h.py | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/asahi/compiler/agx_builder.h.py b/src/asahi/compiler/agx_builder.h.py index dd2fb7ccd60..24e0dd34186 100644 --- a/src/asahi/compiler/agx_builder.h.py +++ b/src/asahi/compiler/agx_builder.h.py @@ -115,11 +115,18 @@ agx_${opcode}(agx_builder *b /* Convenience methods */ enum agx_bitop_table { - AGX_BITOP_NOT = 0x5, - AGX_BITOP_XOR = 0x6, - AGX_BITOP_AND = 0x8, - AGX_BITOP_MOV = 0xA, - AGX_BITOP_OR = 0xE + AGX_BITOP_NOR = 0x1, + AGX_BITOP_ANDN2 = 0x2, + AGX_BITOP_ANDN1 = 0x4, + AGX_BITOP_NOT = 0x5, + AGX_BITOP_XOR = 0x6, + AGX_BITOP_NAND = 0x7, + AGX_BITOP_AND = 0x8, + AGX_BITOP_XNOR = 0x9, + AGX_BITOP_MOV = 0xA, + AGX_BITOP_ORN2 = 0xB, + AGX_BITOP_ORN1 = 0xD, + AGX_BITOP_OR = 0xE }; static inline agx_instr *