From ecfabfd606903a4ccbc8235ab3503bb149debcf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timur=20Krist=C3=B3f?= Date: Thu, 24 Sep 2020 16:01:18 +0200 Subject: [PATCH] aco: Add wave-specific opcode for s_lshl and s_flbit. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Timur Kristóf Reviewed-by: Rhys Perry Part-of: --- src/amd/compiler/aco_builder_h.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/amd/compiler/aco_builder_h.py b/src/amd/compiler/aco_builder_h.py index 5be8c20aeed..91594126d7a 100644 --- a/src/amd/compiler/aco_builder_h.py +++ b/src/amd/compiler/aco_builder_h.py @@ -166,6 +166,8 @@ public: s_bcnt1_i32 = (unsigned) aco_opcode::s_bcnt1_i32_b64, s_bitcmp1 = (unsigned) aco_opcode::s_bitcmp1_b64, s_ff1_i32 = (unsigned) aco_opcode::s_ff1_i32_b64, + s_flbit_i32 = (unsigned) aco_opcode::s_flbit_i32_b64, + s_lshl = (unsigned) aco_opcode::s_lshl_b64, }; Program *program; @@ -309,6 +311,10 @@ public: return aco_opcode::s_bitcmp1_b32; case s_ff1_i32: return aco_opcode::s_ff1_i32_b32; + case s_flbit_i32: + return aco_opcode::s_flbit_i32_b32; + case s_lshl: + return aco_opcode::s_lshl_b32; default: unreachable("Unsupported wave specific opcode."); }