Index: llvm/lib/Target/AMDGPU/VOP2Instructions.td =================================================================== --- llvm/lib/Target/AMDGPU/VOP2Instructions.td +++ llvm/lib/Target/AMDGPU/VOP2Instructions.td @@ -426,7 +426,7 @@ let InsDPP16 = !con(InsDPP, (ins FI:$fi)); let InsVOP3Base = getIns64, 3, 0, HasModifiers, HasModifiers, HasOMod, - Src0Mod, Src1Mod, Src2Mod>.ret; + FPVRegInputMods, FPVRegInputMods, Src2Mod>.ret; // We need a dummy src2 tied to dst to track the use of that register for s_delay_alu let InsVOPDX = (ins Src0RC32:$src0X, Src1RC32:$vsrc1X, VGPRSrc_32:$src2X); let InsVOPDXDeferred = Index: llvm/test/MC/AMDGPU/gfx11_asm_err.s =================================================================== --- llvm/test/MC/AMDGPU/gfx11_asm_err.s +++ llvm/test/MC/AMDGPU/gfx11_asm_err.s @@ -104,3 +104,39 @@ buffer_store_d16_hi_format_x v[1:2], off, s[12:15], s4 offset:4095 glc slc dlc tfe // GFX11: [[@LINE-1]]:{{[0-9]+}}: error: TFE modifier has no meaning for store instructions + +v_fmac_f16_e64_dpp v5, -16, v3 dpp8:[7,6,5,4,3,2,1,0] +// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction + +v_fmac_f16_e64_dpp v5, v2, s3 dpp8:[7,6,5,4,3,2,1,0] +// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction + +v_fmac_f16_e64_dpp v5, v2, 0x1234 dpp8:[7,6,5,4,3,2,1,0] +// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction + +v_fmac_f16_e64_dpp v5, 0x1234, v3 quad_perm:[3,2,1,0] +// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction + +v_fmac_f16_e64_dpp v5, s2, v3 quad_perm:[3,2,1,0] +// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction + +v_fmac_f16_e64_dpp v5, v2, 1.0 quad_perm:[3,2,1,0] +// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction + +v_fmac_f32_e64_dpp v5, s2, v3 dpp8:[7,6,5,4,3,2,1,0] +// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction + +v_fmac_f32_e64_dpp v5, 0x1234, v3 dpp8:[7,6,5,4,3,2,1,0] +// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction + +v_fmac_f32_e64_dpp v5, v2, 1 dpp8:[7,6,5,4,3,2,1,0] +// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction + +v_fmac_f32_e64_dpp v5, -1.0, v3 quad_perm:[3,2,1,0] +// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction + +v_fmac_f32_e64_dpp v5, v2, s3 quad_perm:[3,2,1,0] +// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction + +v_fmac_f32_e64_dpp v5, v2, 0x1234 quad_perm:[3,2,1,0] +// GFX11: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction