From fb8e730d9bce6018154907a633028de75cc40f5d Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Wed, 21 Aug 2024 18:26:55 +0200 Subject: [PATCH] aco/tests: do not use add to tests neg modifer Reviewed-by: Rhys Perry Part-of: --- src/amd/compiler/tests/test_optimizer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/amd/compiler/tests/test_optimizer.cpp b/src/amd/compiler/tests/test_optimizer.cpp index 708212e155b..0a774c9c324 100644 --- a/src/amd/compiler/tests/test_optimizer.cpp +++ b/src/amd/compiler/tests/test_optimizer.cpp @@ -891,17 +891,17 @@ BEGIN_TEST(optimizer.dpp) writeout(2, res2); /* modifiers */ - //! v1: %res3 = v_add_f32 -%a, %b row_mirror bound_ctrl:1 fi + //! v1: %res3 = v_max_f32 -%a, %b row_mirror bound_ctrl:1 fi //! p_unit_test 3, %res3 auto tmp3 = bld.vop1_dpp(aco_opcode::v_mov_b32, bld.def(v1), a, dpp_row_mirror); tmp3->dpp16().neg[0] = true; - Temp res3 = bld.vop2(aco_opcode::v_add_f32, bld.def(v1), tmp3, b); + Temp res3 = bld.vop2(aco_opcode::v_max_f32, bld.def(v1), tmp3, b); writeout(3, res3); - //! v1: %res4 = v_add_f32 -%a, %b row_mirror bound_ctrl:1 fi + //! v1: %res4 = v_max_f32 -%a, %b row_mirror bound_ctrl:1 fi //! p_unit_test 4, %res4 Temp tmp4 = bld.vop1_dpp(aco_opcode::v_mov_b32, bld.def(v1), a, dpp_row_mirror); - auto res4 = bld.vop2_e64(aco_opcode::v_add_f32, bld.def(v1), tmp4, b); + auto res4 = bld.vop2_e64(aco_opcode::v_max_f32, bld.def(v1), tmp4, b); res4->valu().neg[0] = true; writeout(4, res4);