https://github.com/rampitec created https://github.com/llvm/llvm-project/pull/148057
None >From 10f072f90c8c575c670a7ad50c8f8531144a27d3 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin <stanislav.mekhanos...@amd.com> Date: Thu, 10 Jul 2025 13:47:02 -0700 Subject: [PATCH] [AMDGPU] Negative gfx1250 v_dual_cndmask_b32 tests. NFC. --- llvm/test/MC/AMDGPU/gfx1250_err.s | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/llvm/test/MC/AMDGPU/gfx1250_err.s b/llvm/test/MC/AMDGPU/gfx1250_err.s index ddb6d9520ce1d..3e1b4cf6d2bb4 100644 --- a/llvm/test/MC/AMDGPU/gfx1250_err.s +++ b/llvm/test/MC/AMDGPU/gfx1250_err.s @@ -1,5 +1,30 @@ // RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1250 -show-encoding %s 2>&1 | FileCheck --check-prefixes=GFX1250-ERR --implicit-check-not=error: -strict-whitespace %s +// For v_dual_cndmask_b32 use of the explicit src2 forces VOPD3 form even if it is vcc_lo. +// If src2 is omitted then it forces VOPD form. As a result a proper form of the instruction +// has to be used if the other component of the dual instruction cannot be used if that +// encoding. + +v_dual_cndmask_b32 v2, v4, v1 :: v_dual_fma_f32 v7, v1, v2, v3 +// GFX1250-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid VOPDY instruction +// GFX1250-ERR: v_dual_cndmask_b32 v2, v4, v1 :: v_dual_fma_f32 v7, v1, v2, v3 +// GFX1250-ERR: ^ + +v_dual_fma_f32 v7, v1, v2, v3 :: v_dual_cndmask_b32 v2, v4, v1 +// GFX1250-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: too few operands for instruction +// GFX1250-ERR: v_dual_fma_f32 v7, v1, v2, v3 :: v_dual_cndmask_b32 v2, v4, v1 +// GFX1250-ERR: ^ + +v_dual_cndmask_b32 v7, v1, v2 :: v_dual_cndmask_b32 v2, v4, v1, vcc_lo +// GFX1250-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction +// GFX1250-ERR: v_dual_cndmask_b32 v7, v1, v2 :: v_dual_cndmask_b32 v2, v4, v1, vcc_lo +// GFX1250-ERR: ^ + +v_dual_cndmask_b32 v7, v1, v2, vcc_lo :: v_dual_cndmask_b32 v2, v4, v1 +// GFX1250-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: too few operands for instruction +// GFX1250-ERR: v_dual_cndmask_b32 v7, v1, v2, vcc_lo :: v_dual_cndmask_b32 v2, v4, v1 +// GFX1250-ERR: ^ + // Check for unique 64-bit literal s_andn2_b64 s[2:3], 0x10abcdef12345678, 0xabcdef12345678 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits