From 4f6aac1589796c801fc33dd61e0a763bfda5f45a Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Fri, 2 Feb 2024 12:01:22 +0000 Subject: [PATCH] aco/tests: fix to_hw_instr.swap_linear_vgpr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- src/amd/compiler/tests/test_to_hw_instr.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/amd/compiler/tests/test_to_hw_instr.cpp b/src/amd/compiler/tests/test_to_hw_instr.cpp index 73084fa6652..e14ff7e56f4 100644 --- a/src/amd/compiler/tests/test_to_hw_instr.cpp +++ b/src/amd/compiler/tests/test_to_hw_instr.cpp @@ -801,6 +801,10 @@ BEGIN_TEST(to_hw_instr.swap_linear_vgpr) //>> p_unit_test 0 bld.pseudo(aco_opcode::p_unit_test, Operand::zero()); + //! lv1: %0:v[0], lv1: %0:v[1] = v_swap_b32 %0:v[1], %0:v[0] + //! s2: %0:exec, s1: %0:scc = s_not_b64 %0:exec + //! lv1: %0:v[0], lv1: %0:v[1] = v_swap_b32 %0:v[1], %0:v[0] + //! s2: %0:exec, s1: %0:scc = s_not_b64 %0:exec Instruction* instr = bld.pseudo(aco_opcode::p_parallelcopy, Definition(reg_v0, v1_linear), Definition(reg_v1, v1_linear), Operand(reg_v1, v1_linear), Operand(reg_v0, v1_linear));