Index: llvm/trunk/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp =================================================================== --- llvm/trunk/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp +++ llvm/trunk/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp @@ -555,8 +555,6 @@ return createSRegOperand(getTtmpClassId(Width), Val - TTMP_MIN); } - assert(Width == OPW16 || Width == OPW32 || Width == OPW64); - if (INLINE_INTEGER_C_MIN <= Val && Val <= INLINE_INTEGER_C_MAX) return decodeIntImmed(Val); Index: llvm/trunk/lib/Target/AMDGPU/InstPrinter/AMDGPUInstPrinter.cpp =================================================================== --- llvm/trunk/lib/Target/AMDGPU/InstPrinter/AMDGPUInstPrinter.cpp +++ llvm/trunk/lib/Target/AMDGPU/InstPrinter/AMDGPUInstPrinter.cpp @@ -394,7 +394,6 @@ const MCSubtargetInfo &STI, raw_ostream &O) { uint16_t Lo16 = static_cast(Imm); - assert(Lo16 == static_cast(Imm >> 16)); printImmediate16(Lo16, STI, O); } Index: llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/SIMCCodeEmitter.cpp =================================================================== --- llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/SIMCCodeEmitter.cpp +++ llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/SIMCCodeEmitter.cpp @@ -252,9 +252,7 @@ case AMDGPU::OPERAND_REG_INLINE_C_V2INT16: case AMDGPU::OPERAND_REG_INLINE_C_V2FP16: { uint16_t Lo16 = static_cast(Imm); - assert(Lo16 == static_cast(Imm >> 16)); uint32_t Encoding = getLit16Encoding(Lo16, STI); - assert(Encoding != 255 && "packed constants can only be inline immediates"); return Encoding; } default: Index: llvm/trunk/lib/Target/AMDGPU/VOPInstructions.td =================================================================== --- llvm/trunk/lib/Target/AMDGPU/VOPInstructions.td +++ llvm/trunk/lib/Target/AMDGPU/VOPInstructions.td @@ -232,11 +232,11 @@ let Inst{9} = !if(P.HasSrc1Mods, src1_modifiers{1}, 0); // neg_hi src1 let Inst{10} = !if(P.HasSrc2Mods, src2_modifiers{1}, 0); // neg_hi src2 - let Inst{11} = !if(P.HasOpSel, src0_modifiers{2}, 0); // op_sel(0) - let Inst{12} = !if(P.HasOpSel, src1_modifiers{2}, 0); // op_sel(1) - let Inst{13} = !if(P.HasOpSel, src2_modifiers{2}, 0); // op_sel(2) + let Inst{11} = !if(!and(P.HasSrc0, P.HasOpSel), src0_modifiers{2}, 0); // op_sel(0) + let Inst{12} = !if(!and(P.HasSrc1, P.HasOpSel), src1_modifiers{2}, 0); // op_sel(1) + let Inst{13} = !if(!and(P.HasSrc2, P.HasOpSel), src2_modifiers{2}, 0); // op_sel(2) - let Inst{14} = !if(P.HasOpSel, src2_modifiers{3}, 0); // op_sel_hi(2) + let Inst{14} = !if(!and(P.HasSrc2, P.HasOpSel), src2_modifiers{3}, 0); // op_sel_hi(2) let Inst{15} = !if(P.HasClamp, clamp{0}, 0); @@ -245,8 +245,8 @@ let Inst{40-32} = !if(P.HasSrc0, src0, 0); let Inst{49-41} = !if(P.HasSrc1, src1, 0); let Inst{58-50} = !if(P.HasSrc2, src2, 0); - let Inst{59} = !if(P.HasOpSel, src0_modifiers{3}, 0); // op_sel_hi(0) - let Inst{60} = !if(P.HasOpSel, src1_modifiers{3}, 0); // op_sel_hi(1) + let Inst{59} = !if(!and(P.HasSrc0, P.HasOpSel), src0_modifiers{3}, 0); // op_sel_hi(0) + let Inst{60} = !if(!and(P.HasSrc1, P.HasOpSel), src1_modifiers{3}, 0); // op_sel_hi(1) let Inst{61} = !if(P.HasSrc0Mods, src0_modifiers{0}, 0); // neg (lo) let Inst{62} = !if(P.HasSrc1Mods, src1_modifiers{0}, 0); // neg (lo) let Inst{63} = !if(P.HasSrc2Mods, src2_modifiers{0}, 0); // neg (lo) Index: llvm/trunk/test/MC/Disassembler/AMDGPU/gfx9_dasm_all.txt =================================================================== --- llvm/trunk/test/MC/Disassembler/AMDGPU/gfx9_dasm_all.txt +++ llvm/trunk/test/MC/Disassembler/AMDGPU/gfx9_dasm_all.txt @@ -87182,3 +87182,1755 @@ # CHECK: v_ldexp_f16_dpp v5, |v1|, v2 quad_perm:[0,1,2,3] row_mask:0x0 bank_mask:0x0 ; encoding: [0xfa,0x04,0x0a,0x66,0x01,0xe4,0x20,0x00] 0xfa,0x04,0x0a,0x66,0x01,0xe4,0x20,0x00 + +# CHECK: v_pk_add_f16 v5, v1, v2 ; encoding: [0x05,0x00,0x8f,0xd3,0x01,0x05,0x02,0x18] +0x05,0x00,0x8f,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_add_f16 v255, v1, v2 ; encoding: [0xff,0x00,0x8f,0xd3,0x01,0x05,0x02,0x18] +0xff,0x00,0x8f,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_add_f16 v5, v255, v2 ; encoding: [0x05,0x00,0x8f,0xd3,0xff,0x05,0x02,0x18] +0x05,0x00,0x8f,0xd3,0xff,0x05,0x02,0x18 + +# CHECK: v_pk_add_f16 v5, s1, v2 ; encoding: [0x05,0x00,0x8f,0xd3,0x01,0x04,0x02,0x18] +0x05,0x00,0x8f,0xd3,0x01,0x04,0x02,0x18 + +# CHECK: v_pk_add_f16 v5, s101, v2 ; encoding: [0x05,0x00,0x8f,0xd3,0x65,0x04,0x02,0x18] +0x05,0x00,0x8f,0xd3,0x65,0x04,0x02,0x18 + +# CHECK: v_pk_add_f16 v5, flat_scratch_lo, v2 ; encoding: [0x05,0x00,0x8f,0xd3,0x66,0x04,0x02,0x18] +0x05,0x00,0x8f,0xd3,0x66,0x04,0x02,0x18 + +# CHECK: v_pk_add_f16 v5, flat_scratch_hi, v2 ; encoding: [0x05,0x00,0x8f,0xd3,0x67,0x04,0x02,0x18] +0x05,0x00,0x8f,0xd3,0x67,0x04,0x02,0x18 + +# CHECK: v_pk_add_f16 v5, vcc_lo, v2 ; encoding: [0x05,0x00,0x8f,0xd3,0x6a,0x04,0x02,0x18] +0x05,0x00,0x8f,0xd3,0x6a,0x04,0x02,0x18 + +# CHECK: v_pk_add_f16 v5, vcc_hi, v2 ; encoding: [0x05,0x00,0x8f,0xd3,0x6b,0x04,0x02,0x18] +0x05,0x00,0x8f,0xd3,0x6b,0x04,0x02,0x18 + +# CHECK: v_pk_add_f16 v5, exec_lo, v2 ; encoding: [0x05,0x00,0x8f,0xd3,0x7e,0x04,0x02,0x18] +0x05,0x00,0x8f,0xd3,0x7e,0x04,0x02,0x18 + +# CHECK: v_pk_add_f16 v5, exec_hi, v2 ; encoding: [0x05,0x00,0x8f,0xd3,0x7f,0x04,0x02,0x18] +0x05,0x00,0x8f,0xd3,0x7f,0x04,0x02,0x18 + +# CHECK: v_pk_add_f16 v5, -1, v2 ; encoding: [0x05,0x00,0x8f,0xd3,0xc1,0x04,0x02,0x18] +0x05,0x00,0x8f,0xd3,0xc1,0x04,0x02,0x18 + +# CHECK: v_pk_add_f16 v5, -4.0, v2 ; encoding: [0x05,0x00,0x8f,0xd3,0xf7,0x04,0x02,0x18] +0x05,0x00,0x8f,0xd3,0xf7,0x04,0x02,0x18 + +# CHECK: v_pk_add_f16 v5, v1, v255 ; encoding: [0x05,0x00,0x8f,0xd3,0x01,0xff,0x03,0x18] +0x05,0x00,0x8f,0xd3,0x01,0xff,0x03,0x18 + +# CHECK: v_pk_add_f16 v5, v1, s2 ; encoding: [0x05,0x00,0x8f,0xd3,0x01,0x05,0x00,0x18] +0x05,0x00,0x8f,0xd3,0x01,0x05,0x00,0x18 + +# CHECK: v_pk_add_f16 v5, v1, s101 ; encoding: [0x05,0x00,0x8f,0xd3,0x01,0xcb,0x00,0x18] +0x05,0x00,0x8f,0xd3,0x01,0xcb,0x00,0x18 + +# CHECK: v_pk_add_f16 v5, v1, flat_scratch_lo ; encoding: [0x05,0x00,0x8f,0xd3,0x01,0xcd,0x00,0x18] +0x05,0x00,0x8f,0xd3,0x01,0xcd,0x00,0x18 + +# CHECK: v_pk_add_f16 v5, v1, flat_scratch_hi ; encoding: [0x05,0x00,0x8f,0xd3,0x01,0xcf,0x00,0x18] +0x05,0x00,0x8f,0xd3,0x01,0xcf,0x00,0x18 + +# CHECK: v_pk_add_f16 v5, v1, vcc_lo ; encoding: [0x05,0x00,0x8f,0xd3,0x01,0xd5,0x00,0x18] +0x05,0x00,0x8f,0xd3,0x01,0xd5,0x00,0x18 + +# CHECK: v_pk_add_f16 v5, v1, vcc_hi ; encoding: [0x05,0x00,0x8f,0xd3,0x01,0xd7,0x00,0x18] +0x05,0x00,0x8f,0xd3,0x01,0xd7,0x00,0x18 + +# CHECK: v_pk_add_f16 v5, v1, exec_lo ; encoding: [0x05,0x00,0x8f,0xd3,0x01,0xfd,0x00,0x18] +0x05,0x00,0x8f,0xd3,0x01,0xfd,0x00,0x18 + +# CHECK: v_pk_add_f16 v5, v1, exec_hi ; encoding: [0x05,0x00,0x8f,0xd3,0x01,0xff,0x00,0x18] +0x05,0x00,0x8f,0xd3,0x01,0xff,0x00,0x18 + +# CHECK: v_pk_add_f16 v5, v1, -1 ; encoding: [0x05,0x00,0x8f,0xd3,0x01,0x83,0x01,0x18] +0x05,0x00,0x8f,0xd3,0x01,0x83,0x01,0x18 + +# CHECK: v_pk_add_f16 v5, v1, -4.0 ; encoding: [0x05,0x00,0x8f,0xd3,0x01,0xef,0x01,0x18] +0x05,0x00,0x8f,0xd3,0x01,0xef,0x01,0x18 + +# CHECK: v_pk_add_f16 v5, v1, v2 op_sel:[1,0] ; encoding: [0x05,0x08,0x8f,0xd3,0x01,0x05,0x02,0x18] +0x05,0x08,0x8f,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_add_f16 v5, v1, v2 op_sel:[0,1] ; encoding: [0x05,0x10,0x8f,0xd3,0x01,0x05,0x02,0x18] +0x05,0x10,0x8f,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_add_f16 v5, v1, v2 op_sel:[1,1] ; encoding: [0x05,0x18,0x8f,0xd3,0x01,0x05,0x02,0x18] +0x05,0x18,0x8f,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_add_f16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x00,0x8f,0xd3,0x01,0x05,0x02,0x00] +0x05,0x00,0x8f,0xd3,0x01,0x05,0x02,0x00 + +# CHECK: v_pk_add_f16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x00,0x8f,0xd3,0x01,0x05,0x02,0x08] +0x05,0x00,0x8f,0xd3,0x01,0x05,0x02,0x08 + +# CHECK: v_pk_add_f16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x00,0x8f,0xd3,0x01,0x05,0x02,0x10] +0x05,0x00,0x8f,0xd3,0x01,0x05,0x02,0x10 + +# CHECK: v_pk_add_f16 v5, v1, v2 neg_lo:[1,0] ; encoding: [0x05,0x00,0x8f,0xd3,0x01,0x05,0x02,0x38] +0x05,0x00,0x8f,0xd3,0x01,0x05,0x02,0x38 + +# CHECK: v_pk_add_f16 v5, v1, v2 neg_lo:[0,1] ; encoding: [0x05,0x00,0x8f,0xd3,0x01,0x05,0x02,0x58] +0x05,0x00,0x8f,0xd3,0x01,0x05,0x02,0x58 + +# CHECK: v_pk_add_f16 v5, v1, v2 neg_lo:[1,1] ; encoding: [0x05,0x00,0x8f,0xd3,0x01,0x05,0x02,0x78] +0x05,0x00,0x8f,0xd3,0x01,0x05,0x02,0x78 + +# CHECK: v_pk_add_f16 v5, v1, v2 neg_hi:[1,0] ; encoding: [0x05,0x01,0x8f,0xd3,0x01,0x05,0x02,0x18] +0x05,0x01,0x8f,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_add_f16 v5, v1, v2 neg_hi:[0,1] ; encoding: [0x05,0x02,0x8f,0xd3,0x01,0x05,0x02,0x18] +0x05,0x02,0x8f,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_add_f16 v5, v1, v2 neg_hi:[1,1] ; encoding: [0x05,0x03,0x8f,0xd3,0x01,0x05,0x02,0x18] +0x05,0x03,0x8f,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_add_i16 v5, v1, v2 ; encoding: [0x05,0x00,0x82,0xd3,0x01,0x05,0x02,0x18] +0x05,0x00,0x82,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_add_i16 v255, v1, v2 ; encoding: [0xff,0x00,0x82,0xd3,0x01,0x05,0x02,0x18] +0xff,0x00,0x82,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_add_i16 v5, v255, v2 ; encoding: [0x05,0x00,0x82,0xd3,0xff,0x05,0x02,0x18] +0x05,0x00,0x82,0xd3,0xff,0x05,0x02,0x18 + +# CHECK: v_pk_add_i16 v5, s1, v2 ; encoding: [0x05,0x00,0x82,0xd3,0x01,0x04,0x02,0x18] +0x05,0x00,0x82,0xd3,0x01,0x04,0x02,0x18 + +# CHECK: v_pk_add_i16 v5, s101, v2 ; encoding: [0x05,0x00,0x82,0xd3,0x65,0x04,0x02,0x18] +0x05,0x00,0x82,0xd3,0x65,0x04,0x02,0x18 + +# CHECK: v_pk_add_i16 v5, flat_scratch_lo, v2 ; encoding: [0x05,0x00,0x82,0xd3,0x66,0x04,0x02,0x18] +0x05,0x00,0x82,0xd3,0x66,0x04,0x02,0x18 + +# CHECK: v_pk_add_i16 v5, flat_scratch_hi, v2 ; encoding: [0x05,0x00,0x82,0xd3,0x67,0x04,0x02,0x18] +0x05,0x00,0x82,0xd3,0x67,0x04,0x02,0x18 + +# CHECK: v_pk_add_i16 v5, vcc_lo, v2 ; encoding: [0x05,0x00,0x82,0xd3,0x6a,0x04,0x02,0x18] +0x05,0x00,0x82,0xd3,0x6a,0x04,0x02,0x18 + +# CHECK: v_pk_add_i16 v5, vcc_hi, v2 ; encoding: [0x05,0x00,0x82,0xd3,0x6b,0x04,0x02,0x18] +0x05,0x00,0x82,0xd3,0x6b,0x04,0x02,0x18 + +# CHECK: v_pk_add_i16 v5, m0, v2 ; encoding: [0x05,0x00,0x82,0xd3,0x7c,0x04,0x02,0x18] +0x05,0x00,0x82,0xd3,0x7c,0x04,0x02,0x18 + +# CHECK: v_pk_add_i16 v5, exec_lo, v2 ; encoding: [0x05,0x00,0x82,0xd3,0x7e,0x04,0x02,0x18] +0x05,0x00,0x82,0xd3,0x7e,0x04,0x02,0x18 + +# CHECK: v_pk_add_i16 v5, exec_hi, v2 ; encoding: [0x05,0x00,0x82,0xd3,0x7f,0x04,0x02,0x18] +0x05,0x00,0x82,0xd3,0x7f,0x04,0x02,0x18 + +# CHECK: v_pk_add_i16 v5, 0, v2 ; encoding: [0x05,0x00,0x82,0xd3,0x80,0x04,0x02,0x18] +0x05,0x00,0x82,0xd3,0x80,0x04,0x02,0x18 + +# CHECK: v_pk_add_i16 v5, -1, v2 ; encoding: [0x05,0x00,0x82,0xd3,0xc1,0x04,0x02,0x18] +0x05,0x00,0x82,0xd3,0xc1,0x04,0x02,0x18 + +# CHECK: v_pk_add_i16 v5, 0.5, v2 ; encoding: [0x05,0x00,0x82,0xd3,0xf0,0x04,0x02,0x18] +0x05,0x00,0x82,0xd3,0xf0,0x04,0x02,0x18 + +# CHECK: v_pk_add_i16 v5, -4.0, v2 ; encoding: [0x05,0x00,0x82,0xd3,0xf7,0x04,0x02,0x18] +0x05,0x00,0x82,0xd3,0xf7,0x04,0x02,0x18 + +# CHECK: v_pk_add_i16 v5, v1, v255 ; encoding: [0x05,0x00,0x82,0xd3,0x01,0xff,0x03,0x18] +0x05,0x00,0x82,0xd3,0x01,0xff,0x03,0x18 + +# CHECK: v_pk_add_i16 v5, v1, s2 ; encoding: [0x05,0x00,0x82,0xd3,0x01,0x05,0x00,0x18] +0x05,0x00,0x82,0xd3,0x01,0x05,0x00,0x18 + +# CHECK: v_pk_add_i16 v5, v1, s101 ; encoding: [0x05,0x00,0x82,0xd3,0x01,0xcb,0x00,0x18] +0x05,0x00,0x82,0xd3,0x01,0xcb,0x00,0x18 + +# CHECK: v_pk_add_i16 v5, v1, flat_scratch_lo ; encoding: [0x05,0x00,0x82,0xd3,0x01,0xcd,0x00,0x18] +0x05,0x00,0x82,0xd3,0x01,0xcd,0x00,0x18 + +# CHECK: v_pk_add_i16 v5, v1, flat_scratch_hi ; encoding: [0x05,0x00,0x82,0xd3,0x01,0xcf,0x00,0x18] +0x05,0x00,0x82,0xd3,0x01,0xcf,0x00,0x18 + +# CHECK: v_pk_add_i16 v5, v1, vcc_lo ; encoding: [0x05,0x00,0x82,0xd3,0x01,0xd5,0x00,0x18] +0x05,0x00,0x82,0xd3,0x01,0xd5,0x00,0x18 + +# CHECK: v_pk_add_i16 v5, v1, vcc_hi ; encoding: [0x05,0x00,0x82,0xd3,0x01,0xd7,0x00,0x18] +0x05,0x00,0x82,0xd3,0x01,0xd7,0x00,0x18 + +# CHECK: v_pk_add_i16 v5, v1, m0 ; encoding: [0x05,0x00,0x82,0xd3,0x01,0xf9,0x00,0x18] +0x05,0x00,0x82,0xd3,0x01,0xf9,0x00,0x18 + +# CHECK: v_pk_add_i16 v5, v1, exec_lo ; encoding: [0x05,0x00,0x82,0xd3,0x01,0xfd,0x00,0x18] +0x05,0x00,0x82,0xd3,0x01,0xfd,0x00,0x18 + +# CHECK: v_pk_add_i16 v5, v1, exec_hi ; encoding: [0x05,0x00,0x82,0xd3,0x01,0xff,0x00,0x18] +0x05,0x00,0x82,0xd3,0x01,0xff,0x00,0x18 + +# CHECK: v_pk_add_i16 v5, v1, 0 ; encoding: [0x05,0x00,0x82,0xd3,0x01,0x01,0x01,0x18] +0x05,0x00,0x82,0xd3,0x01,0x01,0x01,0x18 + +# CHECK: v_pk_add_i16 v5, v1, -1 ; encoding: [0x05,0x00,0x82,0xd3,0x01,0x83,0x01,0x18] +0x05,0x00,0x82,0xd3,0x01,0x83,0x01,0x18 + +# CHECK: v_pk_add_i16 v5, v1, 0.5 ; encoding: [0x05,0x00,0x82,0xd3,0x01,0xe1,0x01,0x18] +0x05,0x00,0x82,0xd3,0x01,0xe1,0x01,0x18 + +# CHECK: v_pk_add_i16 v5, v1, -4.0 ; encoding: [0x05,0x00,0x82,0xd3,0x01,0xef,0x01,0x18] +0x05,0x00,0x82,0xd3,0x01,0xef,0x01,0x18 + +# CHECK: v_pk_add_i16 v5, v1, v2 op_sel:[1,0] ; encoding: [0x05,0x08,0x82,0xd3,0x01,0x05,0x02,0x18] +0x05,0x08,0x82,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_add_i16 v5, v1, v2 op_sel:[0,1] ; encoding: [0x05,0x10,0x82,0xd3,0x01,0x05,0x02,0x18] +0x05,0x10,0x82,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_add_i16 v5, v1, v2 op_sel:[1,1] ; encoding: [0x05,0x18,0x82,0xd3,0x01,0x05,0x02,0x18] +0x05,0x18,0x82,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_add_i16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x00,0x82,0xd3,0x01,0x05,0x02,0x00] +0x05,0x00,0x82,0xd3,0x01,0x05,0x02,0x00 + +# CHECK: v_pk_add_i16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x00,0x82,0xd3,0x01,0x05,0x02,0x08] +0x05,0x00,0x82,0xd3,0x01,0x05,0x02,0x08 + +# CHECK: v_pk_add_i16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x00,0x82,0xd3,0x01,0x05,0x02,0x10] +0x05,0x00,0x82,0xd3,0x01,0x05,0x02,0x10 + +# CHECK: v_pk_add_i16 v5, v1, v2 clamp ; encoding: [0x05,0x80,0x82,0xd3,0x01,0x05,0x02,0x18] +0x05,0x80,0x82,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_add_u16 v5, v1, v2 ; encoding: [0x05,0x00,0x8a,0xd3,0x01,0x05,0x02,0x18] +0x05,0x00,0x8a,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_add_u16 v255, v1, v2 ; encoding: [0xff,0x00,0x8a,0xd3,0x01,0x05,0x02,0x18] +0xff,0x00,0x8a,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_add_u16 v5, v255, v2 ; encoding: [0x05,0x00,0x8a,0xd3,0xff,0x05,0x02,0x18] +0x05,0x00,0x8a,0xd3,0xff,0x05,0x02,0x18 + +# CHECK: v_pk_add_u16 v5, s1, v2 ; encoding: [0x05,0x00,0x8a,0xd3,0x01,0x04,0x02,0x18] +0x05,0x00,0x8a,0xd3,0x01,0x04,0x02,0x18 + +# CHECK: v_pk_add_u16 v5, s101, v2 ; encoding: [0x05,0x00,0x8a,0xd3,0x65,0x04,0x02,0x18] +0x05,0x00,0x8a,0xd3,0x65,0x04,0x02,0x18 + +# CHECK: v_pk_add_u16 v5, flat_scratch_lo, v2 ; encoding: [0x05,0x00,0x8a,0xd3,0x66,0x04,0x02,0x18] +0x05,0x00,0x8a,0xd3,0x66,0x04,0x02,0x18 + +# CHECK: v_pk_add_u16 v5, flat_scratch_hi, v2 ; encoding: [0x05,0x00,0x8a,0xd3,0x67,0x04,0x02,0x18] +0x05,0x00,0x8a,0xd3,0x67,0x04,0x02,0x18 + +# CHECK: v_pk_add_u16 v5, vcc_lo, v2 ; encoding: [0x05,0x00,0x8a,0xd3,0x6a,0x04,0x02,0x18] +0x05,0x00,0x8a,0xd3,0x6a,0x04,0x02,0x18 + +# CHECK: v_pk_add_u16 v5, vcc_hi, v2 ; encoding: [0x05,0x00,0x8a,0xd3,0x6b,0x04,0x02,0x18] +0x05,0x00,0x8a,0xd3,0x6b,0x04,0x02,0x18 + +# CHECK: v_pk_add_u16 v5, m0, v2 ; encoding: [0x05,0x00,0x8a,0xd3,0x7c,0x04,0x02,0x18] +0x05,0x00,0x8a,0xd3,0x7c,0x04,0x02,0x18 + +# CHECK: v_pk_add_u16 v5, exec_lo, v2 ; encoding: [0x05,0x00,0x8a,0xd3,0x7e,0x04,0x02,0x18] +0x05,0x00,0x8a,0xd3,0x7e,0x04,0x02,0x18 + +# CHECK: v_pk_add_u16 v5, exec_hi, v2 ; encoding: [0x05,0x00,0x8a,0xd3,0x7f,0x04,0x02,0x18] +0x05,0x00,0x8a,0xd3,0x7f,0x04,0x02,0x18 + +# CHECK: v_pk_add_u16 v5, 0, v2 ; encoding: [0x05,0x00,0x8a,0xd3,0x80,0x04,0x02,0x18] +0x05,0x00,0x8a,0xd3,0x80,0x04,0x02,0x18 + +# CHECK: v_pk_add_u16 v5, -1, v2 ; encoding: [0x05,0x00,0x8a,0xd3,0xc1,0x04,0x02,0x18] +0x05,0x00,0x8a,0xd3,0xc1,0x04,0x02,0x18 + +# CHECK: v_pk_add_u16 v5, 0.5, v2 ; encoding: [0x05,0x00,0x8a,0xd3,0xf0,0x04,0x02,0x18] +0x05,0x00,0x8a,0xd3,0xf0,0x04,0x02,0x18 + +# CHECK: v_pk_add_u16 v5, -4.0, v2 ; encoding: [0x05,0x00,0x8a,0xd3,0xf7,0x04,0x02,0x18] +0x05,0x00,0x8a,0xd3,0xf7,0x04,0x02,0x18 + +# CHECK: v_pk_add_u16 v5, v1, v255 ; encoding: [0x05,0x00,0x8a,0xd3,0x01,0xff,0x03,0x18] +0x05,0x00,0x8a,0xd3,0x01,0xff,0x03,0x18 + +# CHECK: v_pk_add_u16 v5, v1, s2 ; encoding: [0x05,0x00,0x8a,0xd3,0x01,0x05,0x00,0x18] +0x05,0x00,0x8a,0xd3,0x01,0x05,0x00,0x18 + +# CHECK: v_pk_add_u16 v5, v1, s101 ; encoding: [0x05,0x00,0x8a,0xd3,0x01,0xcb,0x00,0x18] +0x05,0x00,0x8a,0xd3,0x01,0xcb,0x00,0x18 + +# CHECK: v_pk_add_u16 v5, v1, flat_scratch_lo ; encoding: [0x05,0x00,0x8a,0xd3,0x01,0xcd,0x00,0x18] +0x05,0x00,0x8a,0xd3,0x01,0xcd,0x00,0x18 + +# CHECK: v_pk_add_u16 v5, v1, flat_scratch_hi ; encoding: [0x05,0x00,0x8a,0xd3,0x01,0xcf,0x00,0x18] +0x05,0x00,0x8a,0xd3,0x01,0xcf,0x00,0x18 + +# CHECK: v_pk_add_u16 v5, v1, vcc_lo ; encoding: [0x05,0x00,0x8a,0xd3,0x01,0xd5,0x00,0x18] +0x05,0x00,0x8a,0xd3,0x01,0xd5,0x00,0x18 + +# CHECK: v_pk_add_u16 v5, v1, vcc_hi ; encoding: [0x05,0x00,0x8a,0xd3,0x01,0xd7,0x00,0x18] +0x05,0x00,0x8a,0xd3,0x01,0xd7,0x00,0x18 + +# CHECK: v_pk_add_u16 v5, v1, m0 ; encoding: [0x05,0x00,0x8a,0xd3,0x01,0xf9,0x00,0x18] +0x05,0x00,0x8a,0xd3,0x01,0xf9,0x00,0x18 + +# CHECK: v_pk_add_u16 v5, v1, exec_lo ; encoding: [0x05,0x00,0x8a,0xd3,0x01,0xfd,0x00,0x18] +0x05,0x00,0x8a,0xd3,0x01,0xfd,0x00,0x18 + +# CHECK: v_pk_add_u16 v5, v1, exec_hi ; encoding: [0x05,0x00,0x8a,0xd3,0x01,0xff,0x00,0x18] +0x05,0x00,0x8a,0xd3,0x01,0xff,0x00,0x18 + +# CHECK: v_pk_add_u16 v5, v1, 0 ; encoding: [0x05,0x00,0x8a,0xd3,0x01,0x01,0x01,0x18] +0x05,0x00,0x8a,0xd3,0x01,0x01,0x01,0x18 + +# CHECK: v_pk_add_u16 v5, v1, -1 ; encoding: [0x05,0x00,0x8a,0xd3,0x01,0x83,0x01,0x18] +0x05,0x00,0x8a,0xd3,0x01,0x83,0x01,0x18 + +# CHECK: v_pk_add_u16 v5, v1, 0.5 ; encoding: [0x05,0x00,0x8a,0xd3,0x01,0xe1,0x01,0x18] +0x05,0x00,0x8a,0xd3,0x01,0xe1,0x01,0x18 + +# CHECK: v_pk_add_u16 v5, v1, -4.0 ; encoding: [0x05,0x00,0x8a,0xd3,0x01,0xef,0x01,0x18] +0x05,0x00,0x8a,0xd3,0x01,0xef,0x01,0x18 + +# CHECK: v_pk_add_u16 v5, v1, v2 op_sel:[1,0] ; encoding: [0x05,0x08,0x8a,0xd3,0x01,0x05,0x02,0x18] +0x05,0x08,0x8a,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_add_u16 v5, v1, v2 op_sel:[0,1] ; encoding: [0x05,0x10,0x8a,0xd3,0x01,0x05,0x02,0x18] +0x05,0x10,0x8a,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_add_u16 v5, v1, v2 op_sel:[1,1] ; encoding: [0x05,0x18,0x8a,0xd3,0x01,0x05,0x02,0x18] +0x05,0x18,0x8a,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_add_u16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x00,0x8a,0xd3,0x01,0x05,0x02,0x00] +0x05,0x00,0x8a,0xd3,0x01,0x05,0x02,0x00 + +# CHECK: v_pk_add_u16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x00,0x8a,0xd3,0x01,0x05,0x02,0x08] +0x05,0x00,0x8a,0xd3,0x01,0x05,0x02,0x08 + +# CHECK: v_pk_add_u16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x00,0x8a,0xd3,0x01,0x05,0x02,0x10] +0x05,0x00,0x8a,0xd3,0x01,0x05,0x02,0x10 + +# CHECK: v_pk_add_u16 v5, v1, v2 clamp ; encoding: [0x05,0x80,0x8a,0xd3,0x01,0x05,0x02,0x18] +0x05,0x80,0x8a,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, v1, v2 ; encoding: [0x05,0x00,0x86,0xd3,0x01,0x05,0x02,0x18] +0x05,0x00,0x86,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_ashrrev_i16 v255, v1, v2 ; encoding: [0xff,0x00,0x86,0xd3,0x01,0x05,0x02,0x18] +0xff,0x00,0x86,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, v255, v2 ; encoding: [0x05,0x00,0x86,0xd3,0xff,0x05,0x02,0x18] +0x05,0x00,0x86,0xd3,0xff,0x05,0x02,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, s1, v2 ; encoding: [0x05,0x00,0x86,0xd3,0x01,0x04,0x02,0x18] +0x05,0x00,0x86,0xd3,0x01,0x04,0x02,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, s101, v2 ; encoding: [0x05,0x00,0x86,0xd3,0x65,0x04,0x02,0x18] +0x05,0x00,0x86,0xd3,0x65,0x04,0x02,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, flat_scratch_lo, v2 ; encoding: [0x05,0x00,0x86,0xd3,0x66,0x04,0x02,0x18] +0x05,0x00,0x86,0xd3,0x66,0x04,0x02,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, flat_scratch_hi, v2 ; encoding: [0x05,0x00,0x86,0xd3,0x67,0x04,0x02,0x18] +0x05,0x00,0x86,0xd3,0x67,0x04,0x02,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, vcc_lo, v2 ; encoding: [0x05,0x00,0x86,0xd3,0x6a,0x04,0x02,0x18] +0x05,0x00,0x86,0xd3,0x6a,0x04,0x02,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, vcc_hi, v2 ; encoding: [0x05,0x00,0x86,0xd3,0x6b,0x04,0x02,0x18] +0x05,0x00,0x86,0xd3,0x6b,0x04,0x02,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, m0, v2 ; encoding: [0x05,0x00,0x86,0xd3,0x7c,0x04,0x02,0x18] +0x05,0x00,0x86,0xd3,0x7c,0x04,0x02,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, exec_lo, v2 ; encoding: [0x05,0x00,0x86,0xd3,0x7e,0x04,0x02,0x18] +0x05,0x00,0x86,0xd3,0x7e,0x04,0x02,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, exec_hi, v2 ; encoding: [0x05,0x00,0x86,0xd3,0x7f,0x04,0x02,0x18] +0x05,0x00,0x86,0xd3,0x7f,0x04,0x02,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, 0, v2 ; encoding: [0x05,0x00,0x86,0xd3,0x80,0x04,0x02,0x18] +0x05,0x00,0x86,0xd3,0x80,0x04,0x02,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, -1, v2 ; encoding: [0x05,0x00,0x86,0xd3,0xc1,0x04,0x02,0x18] +0x05,0x00,0x86,0xd3,0xc1,0x04,0x02,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, 0.5, v2 ; encoding: [0x05,0x00,0x86,0xd3,0xf0,0x04,0x02,0x18] +0x05,0x00,0x86,0xd3,0xf0,0x04,0x02,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, -4.0, v2 ; encoding: [0x05,0x00,0x86,0xd3,0xf7,0x04,0x02,0x18] +0x05,0x00,0x86,0xd3,0xf7,0x04,0x02,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, v1, v255 ; encoding: [0x05,0x00,0x86,0xd3,0x01,0xff,0x03,0x18] +0x05,0x00,0x86,0xd3,0x01,0xff,0x03,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, v1, s2 ; encoding: [0x05,0x00,0x86,0xd3,0x01,0x05,0x00,0x18] +0x05,0x00,0x86,0xd3,0x01,0x05,0x00,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, v1, s101 ; encoding: [0x05,0x00,0x86,0xd3,0x01,0xcb,0x00,0x18] +0x05,0x00,0x86,0xd3,0x01,0xcb,0x00,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, v1, flat_scratch_lo ; encoding: [0x05,0x00,0x86,0xd3,0x01,0xcd,0x00,0x18] +0x05,0x00,0x86,0xd3,0x01,0xcd,0x00,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, v1, flat_scratch_hi ; encoding: [0x05,0x00,0x86,0xd3,0x01,0xcf,0x00,0x18] +0x05,0x00,0x86,0xd3,0x01,0xcf,0x00,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, v1, vcc_lo ; encoding: [0x05,0x00,0x86,0xd3,0x01,0xd5,0x00,0x18] +0x05,0x00,0x86,0xd3,0x01,0xd5,0x00,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, v1, vcc_hi ; encoding: [0x05,0x00,0x86,0xd3,0x01,0xd7,0x00,0x18] +0x05,0x00,0x86,0xd3,0x01,0xd7,0x00,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, v1, m0 ; encoding: [0x05,0x00,0x86,0xd3,0x01,0xf9,0x00,0x18] +0x05,0x00,0x86,0xd3,0x01,0xf9,0x00,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, v1, exec_lo ; encoding: [0x05,0x00,0x86,0xd3,0x01,0xfd,0x00,0x18] +0x05,0x00,0x86,0xd3,0x01,0xfd,0x00,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, v1, exec_hi ; encoding: [0x05,0x00,0x86,0xd3,0x01,0xff,0x00,0x18] +0x05,0x00,0x86,0xd3,0x01,0xff,0x00,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, v1, 0 ; encoding: [0x05,0x00,0x86,0xd3,0x01,0x01,0x01,0x18] +0x05,0x00,0x86,0xd3,0x01,0x01,0x01,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, v1, -1 ; encoding: [0x05,0x00,0x86,0xd3,0x01,0x83,0x01,0x18] +0x05,0x00,0x86,0xd3,0x01,0x83,0x01,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, v1, 0.5 ; encoding: [0x05,0x00,0x86,0xd3,0x01,0xe1,0x01,0x18] +0x05,0x00,0x86,0xd3,0x01,0xe1,0x01,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, v1, -4.0 ; encoding: [0x05,0x00,0x86,0xd3,0x01,0xef,0x01,0x18] +0x05,0x00,0x86,0xd3,0x01,0xef,0x01,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, v1, v2 op_sel:[1,0] ; encoding: [0x05,0x08,0x86,0xd3,0x01,0x05,0x02,0x18] +0x05,0x08,0x86,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, v1, v2 op_sel:[0,1] ; encoding: [0x05,0x10,0x86,0xd3,0x01,0x05,0x02,0x18] +0x05,0x10,0x86,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, v1, v2 op_sel:[1,1] ; encoding: [0x05,0x18,0x86,0xd3,0x01,0x05,0x02,0x18] +0x05,0x18,0x86,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_ashrrev_i16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x00,0x86,0xd3,0x01,0x05,0x02,0x00] +0x05,0x00,0x86,0xd3,0x01,0x05,0x02,0x00 + +# CHECK: v_pk_ashrrev_i16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x00,0x86,0xd3,0x01,0x05,0x02,0x08] +0x05,0x00,0x86,0xd3,0x01,0x05,0x02,0x08 + +# CHECK: v_pk_ashrrev_i16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x00,0x86,0xd3,0x01,0x05,0x02,0x10] +0x05,0x00,0x86,0xd3,0x01,0x05,0x02,0x10 + +# CHECK: v_pk_ashrrev_i16 v5, v1, v2 clamp ; encoding: [0x05,0x80,0x86,0xd3,0x01,0x05,0x02,0x18] +0x05,0x80,0x86,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_fma_f16 v5, flat_scratch_lo, v2, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0x66,0x04,0x0e,0x1c] +0x05,0x40,0x8e,0xd3,0x66,0x04,0x0e,0x1c + +# CHECK: v_pk_fma_f16 v5, flat_scratch_hi, v2, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0x67,0x04,0x0e,0x1c] +0x05,0x40,0x8e,0xd3,0x67,0x04,0x0e,0x1c + +# CHECK: v_pk_fma_f16 v5, vcc_lo, v2, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0x6a,0x04,0x0e,0x1c] +0x05,0x40,0x8e,0xd3,0x6a,0x04,0x0e,0x1c + +# CHECK: v_pk_fma_f16 v5, vcc_hi, v2, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0x6b,0x04,0x0e,0x1c] +0x05,0x40,0x8e,0xd3,0x6b,0x04,0x0e,0x1c + +# CHECK: v_pk_fma_f16 v5, m0, v2, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0x7c,0x04,0x0e,0x1c] +0x05,0x40,0x8e,0xd3,0x7c,0x04,0x0e,0x1c + +# CHECK: v_pk_fma_f16 v5, exec_lo, v2, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0x7e,0x04,0x0e,0x1c] +0x05,0x40,0x8e,0xd3,0x7e,0x04,0x0e,0x1c + +# CHECK: v_pk_fma_f16 v5, exec_hi, v2, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0x7f,0x04,0x0e,0x1c] +0x05,0x40,0x8e,0xd3,0x7f,0x04,0x0e,0x1c + +# CHECK: v_pk_fma_f16 v5, 0, v2, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0x80,0x04,0x0e,0x1c] +0x05,0x40,0x8e,0xd3,0x80,0x04,0x0e,0x1c + +# CHECK: v_pk_fma_f16 v5, -1, v2, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0xc1,0x04,0x0e,0x1c] +0x05,0x40,0x8e,0xd3,0xc1,0x04,0x0e,0x1c + +# CHECK: v_pk_fma_f16 v5, 0.5, v2, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0xf0,0x04,0x0e,0x1c] +0x05,0x40,0x8e,0xd3,0xf0,0x04,0x0e,0x1c + +# CHECK: v_pk_fma_f16 v5, -4.0, v2, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0xf7,0x04,0x0e,0x1c] +0x05,0x40,0x8e,0xd3,0xf7,0x04,0x0e,0x1c + +# CHECK: v_pk_fma_f16 v5, v1, flat_scratch_lo, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0xcd,0x0c,0x1c] +0x05,0x40,0x8e,0xd3,0x01,0xcd,0x0c,0x1c + +# CHECK: v_pk_fma_f16 v5, v1, flat_scratch_hi, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0xcf,0x0c,0x1c] +0x05,0x40,0x8e,0xd3,0x01,0xcf,0x0c,0x1c + +# CHECK: v_pk_fma_f16 v5, v1, vcc_lo, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0xd5,0x0c,0x1c] +0x05,0x40,0x8e,0xd3,0x01,0xd5,0x0c,0x1c + +# CHECK: v_pk_fma_f16 v5, v1, vcc_hi, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0xd7,0x0c,0x1c] +0x05,0x40,0x8e,0xd3,0x01,0xd7,0x0c,0x1c + +# CHECK: v_pk_fma_f16 v5, v1, m0, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0xf9,0x0c,0x1c] +0x05,0x40,0x8e,0xd3,0x01,0xf9,0x0c,0x1c + +# CHECK: v_pk_fma_f16 v5, v1, exec_lo, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0xfd,0x0c,0x1c] +0x05,0x40,0x8e,0xd3,0x01,0xfd,0x0c,0x1c + +# CHECK: v_pk_fma_f16 v5, v1, exec_hi, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0xff,0x0c,0x1c] +0x05,0x40,0x8e,0xd3,0x01,0xff,0x0c,0x1c + +# CHECK: v_pk_fma_f16 v5, v1, 0, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x01,0x0d,0x1c] +0x05,0x40,0x8e,0xd3,0x01,0x01,0x0d,0x1c + +# CHECK: v_pk_fma_f16 v5, v1, -1, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x83,0x0d,0x1c] +0x05,0x40,0x8e,0xd3,0x01,0x83,0x0d,0x1c + +# CHECK: v_pk_fma_f16 v5, v1, 0.5, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0xe1,0x0d,0x1c] +0x05,0x40,0x8e,0xd3,0x01,0xe1,0x0d,0x1c + +# CHECK: v_pk_fma_f16 v5, v1, -4.0, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0xef,0x0d,0x1c] +0x05,0x40,0x8e,0xd3,0x01,0xef,0x0d,0x1c + +# CHECK: v_pk_fma_f16 v5, v1, v2, flat_scratch_lo ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0x9a,0x19] +0x05,0x40,0x8e,0xd3,0x01,0x05,0x9a,0x19 + +# CHECK: v_pk_fma_f16 v5, v1, v2, flat_scratch_hi ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0x9e,0x19] +0x05,0x40,0x8e,0xd3,0x01,0x05,0x9e,0x19 + +# CHECK: v_pk_fma_f16 v5, v1, v2, vcc_lo ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0xaa,0x19] +0x05,0x40,0x8e,0xd3,0x01,0x05,0xaa,0x19 + +# CHECK: v_pk_fma_f16 v5, v1, v2, vcc_hi ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0xae,0x19] +0x05,0x40,0x8e,0xd3,0x01,0x05,0xae,0x19 + +# CHECK: v_pk_fma_f16 v5, v1, v2, m0 ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0xf2,0x19] +0x05,0x40,0x8e,0xd3,0x01,0x05,0xf2,0x19 + +# CHECK: v_pk_fma_f16 v5, v1, v2, exec_lo ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0xfa,0x19] +0x05,0x40,0x8e,0xd3,0x01,0x05,0xfa,0x19 + +# CHECK: v_pk_fma_f16 v5, v1, v2, exec_hi ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0xfe,0x19] +0x05,0x40,0x8e,0xd3,0x01,0x05,0xfe,0x19 + +# CHECK: v_pk_fma_f16 v5, v1, v2, 0 ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0x02,0x1a] +0x05,0x40,0x8e,0xd3,0x01,0x05,0x02,0x1a + +# CHECK: v_pk_fma_f16 v5, v1, v2, -1 ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0x06,0x1b] +0x05,0x40,0x8e,0xd3,0x01,0x05,0x06,0x1b + +# CHECK: v_pk_fma_f16 v5, v1, v2, 0.5 ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0xc2,0x1b] +0x05,0x40,0x8e,0xd3,0x01,0x05,0xc2,0x1b + +# CHECK: v_pk_fma_f16 v5, v1, v2, -4.0 ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0xde,0x1b] +0x05,0x40,0x8e,0xd3,0x01,0x05,0xde,0x1b + +# CHECK: v_pk_lshlrev_b16 v5, v1, v2 ; encoding: [0x05,0x00,0x84,0xd3,0x01,0x05,0x02,0x18] +0x05,0x00,0x84,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_lshlrev_b16 v255, v1, v2 ; encoding: [0xff,0x00,0x84,0xd3,0x01,0x05,0x02,0x18] +0xff,0x00,0x84,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, v255, v2 ; encoding: [0x05,0x00,0x84,0xd3,0xff,0x05,0x02,0x18] +0x05,0x00,0x84,0xd3,0xff,0x05,0x02,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, s1, v2 ; encoding: [0x05,0x00,0x84,0xd3,0x01,0x04,0x02,0x18] +0x05,0x00,0x84,0xd3,0x01,0x04,0x02,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, s101, v2 ; encoding: [0x05,0x00,0x84,0xd3,0x65,0x04,0x02,0x18] +0x05,0x00,0x84,0xd3,0x65,0x04,0x02,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, flat_scratch_lo, v2 ; encoding: [0x05,0x00,0x84,0xd3,0x66,0x04,0x02,0x18] +0x05,0x00,0x84,0xd3,0x66,0x04,0x02,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, flat_scratch_hi, v2 ; encoding: [0x05,0x00,0x84,0xd3,0x67,0x04,0x02,0x18] +0x05,0x00,0x84,0xd3,0x67,0x04,0x02,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, vcc_lo, v2 ; encoding: [0x05,0x00,0x84,0xd3,0x6a,0x04,0x02,0x18] +0x05,0x00,0x84,0xd3,0x6a,0x04,0x02,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, vcc_hi, v2 ; encoding: [0x05,0x00,0x84,0xd3,0x6b,0x04,0x02,0x18] +0x05,0x00,0x84,0xd3,0x6b,0x04,0x02,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, m0, v2 ; encoding: [0x05,0x00,0x84,0xd3,0x7c,0x04,0x02,0x18] +0x05,0x00,0x84,0xd3,0x7c,0x04,0x02,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, exec_lo, v2 ; encoding: [0x05,0x00,0x84,0xd3,0x7e,0x04,0x02,0x18] +0x05,0x00,0x84,0xd3,0x7e,0x04,0x02,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, exec_hi, v2 ; encoding: [0x05,0x00,0x84,0xd3,0x7f,0x04,0x02,0x18] +0x05,0x00,0x84,0xd3,0x7f,0x04,0x02,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, 0, v2 ; encoding: [0x05,0x00,0x84,0xd3,0x80,0x04,0x02,0x18] +0x05,0x00,0x84,0xd3,0x80,0x04,0x02,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, -1, v2 ; encoding: [0x05,0x00,0x84,0xd3,0xc1,0x04,0x02,0x18] +0x05,0x00,0x84,0xd3,0xc1,0x04,0x02,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, 0.5, v2 ; encoding: [0x05,0x00,0x84,0xd3,0xf0,0x04,0x02,0x18] +0x05,0x00,0x84,0xd3,0xf0,0x04,0x02,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, -4.0, v2 ; encoding: [0x05,0x00,0x84,0xd3,0xf7,0x04,0x02,0x18] +0x05,0x00,0x84,0xd3,0xf7,0x04,0x02,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, v1, v255 ; encoding: [0x05,0x00,0x84,0xd3,0x01,0xff,0x03,0x18] +0x05,0x00,0x84,0xd3,0x01,0xff,0x03,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, v1, s2 ; encoding: [0x05,0x00,0x84,0xd3,0x01,0x05,0x00,0x18] +0x05,0x00,0x84,0xd3,0x01,0x05,0x00,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, v1, s101 ; encoding: [0x05,0x00,0x84,0xd3,0x01,0xcb,0x00,0x18] +0x05,0x00,0x84,0xd3,0x01,0xcb,0x00,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, v1, flat_scratch_lo ; encoding: [0x05,0x00,0x84,0xd3,0x01,0xcd,0x00,0x18] +0x05,0x00,0x84,0xd3,0x01,0xcd,0x00,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, v1, flat_scratch_hi ; encoding: [0x05,0x00,0x84,0xd3,0x01,0xcf,0x00,0x18] +0x05,0x00,0x84,0xd3,0x01,0xcf,0x00,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, v1, vcc_lo ; encoding: [0x05,0x00,0x84,0xd3,0x01,0xd5,0x00,0x18] +0x05,0x00,0x84,0xd3,0x01,0xd5,0x00,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, v1, vcc_hi ; encoding: [0x05,0x00,0x84,0xd3,0x01,0xd7,0x00,0x18] +0x05,0x00,0x84,0xd3,0x01,0xd7,0x00,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, v1, m0 ; encoding: [0x05,0x00,0x84,0xd3,0x01,0xf9,0x00,0x18] +0x05,0x00,0x84,0xd3,0x01,0xf9,0x00,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, v1, exec_lo ; encoding: [0x05,0x00,0x84,0xd3,0x01,0xfd,0x00,0x18] +0x05,0x00,0x84,0xd3,0x01,0xfd,0x00,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, v1, exec_hi ; encoding: [0x05,0x00,0x84,0xd3,0x01,0xff,0x00,0x18] +0x05,0x00,0x84,0xd3,0x01,0xff,0x00,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, v1, 0 ; encoding: [0x05,0x00,0x84,0xd3,0x01,0x01,0x01,0x18] +0x05,0x00,0x84,0xd3,0x01,0x01,0x01,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, v1, -1 ; encoding: [0x05,0x00,0x84,0xd3,0x01,0x83,0x01,0x18] +0x05,0x00,0x84,0xd3,0x01,0x83,0x01,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, v1, 0.5 ; encoding: [0x05,0x00,0x84,0xd3,0x01,0xe1,0x01,0x18] +0x05,0x00,0x84,0xd3,0x01,0xe1,0x01,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, v1, -4.0 ; encoding: [0x05,0x00,0x84,0xd3,0x01,0xef,0x01,0x18] +0x05,0x00,0x84,0xd3,0x01,0xef,0x01,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, v1, v2 op_sel:[1,0] ; encoding: [0x05,0x08,0x84,0xd3,0x01,0x05,0x02,0x18] +0x05,0x08,0x84,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, v1, v2 op_sel:[0,1] ; encoding: [0x05,0x10,0x84,0xd3,0x01,0x05,0x02,0x18] +0x05,0x10,0x84,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, v1, v2 op_sel:[1,1] ; encoding: [0x05,0x18,0x84,0xd3,0x01,0x05,0x02,0x18] +0x05,0x18,0x84,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_lshlrev_b16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x00,0x84,0xd3,0x01,0x05,0x02,0x00] +0x05,0x00,0x84,0xd3,0x01,0x05,0x02,0x00 + +# CHECK: v_pk_lshlrev_b16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x00,0x84,0xd3,0x01,0x05,0x02,0x08] +0x05,0x00,0x84,0xd3,0x01,0x05,0x02,0x08 + +# CHECK: v_pk_lshlrev_b16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x00,0x84,0xd3,0x01,0x05,0x02,0x10] +0x05,0x00,0x84,0xd3,0x01,0x05,0x02,0x10 + +# CHECK: v_pk_lshlrev_b16 v5, v1, v2 clamp ; encoding: [0x05,0x80,0x84,0xd3,0x01,0x05,0x02,0x18] +0x05,0x80,0x84,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, v1, v2 ; encoding: [0x05,0x00,0x85,0xd3,0x01,0x05,0x02,0x18] +0x05,0x00,0x85,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_lshrrev_b16 v255, v1, v2 ; encoding: [0xff,0x00,0x85,0xd3,0x01,0x05,0x02,0x18] +0xff,0x00,0x85,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, v255, v2 ; encoding: [0x05,0x00,0x85,0xd3,0xff,0x05,0x02,0x18] +0x05,0x00,0x85,0xd3,0xff,0x05,0x02,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, s1, v2 ; encoding: [0x05,0x00,0x85,0xd3,0x01,0x04,0x02,0x18] +0x05,0x00,0x85,0xd3,0x01,0x04,0x02,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, s101, v2 ; encoding: [0x05,0x00,0x85,0xd3,0x65,0x04,0x02,0x18] +0x05,0x00,0x85,0xd3,0x65,0x04,0x02,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, flat_scratch_lo, v2 ; encoding: [0x05,0x00,0x85,0xd3,0x66,0x04,0x02,0x18] +0x05,0x00,0x85,0xd3,0x66,0x04,0x02,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, flat_scratch_hi, v2 ; encoding: [0x05,0x00,0x85,0xd3,0x67,0x04,0x02,0x18] +0x05,0x00,0x85,0xd3,0x67,0x04,0x02,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, vcc_lo, v2 ; encoding: [0x05,0x00,0x85,0xd3,0x6a,0x04,0x02,0x18] +0x05,0x00,0x85,0xd3,0x6a,0x04,0x02,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, vcc_hi, v2 ; encoding: [0x05,0x00,0x85,0xd3,0x6b,0x04,0x02,0x18] +0x05,0x00,0x85,0xd3,0x6b,0x04,0x02,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, m0, v2 ; encoding: [0x05,0x00,0x85,0xd3,0x7c,0x04,0x02,0x18] +0x05,0x00,0x85,0xd3,0x7c,0x04,0x02,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, exec_lo, v2 ; encoding: [0x05,0x00,0x85,0xd3,0x7e,0x04,0x02,0x18] +0x05,0x00,0x85,0xd3,0x7e,0x04,0x02,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, exec_hi, v2 ; encoding: [0x05,0x00,0x85,0xd3,0x7f,0x04,0x02,0x18] +0x05,0x00,0x85,0xd3,0x7f,0x04,0x02,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, 0, v2 ; encoding: [0x05,0x00,0x85,0xd3,0x80,0x04,0x02,0x18] +0x05,0x00,0x85,0xd3,0x80,0x04,0x02,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, -1, v2 ; encoding: [0x05,0x00,0x85,0xd3,0xc1,0x04,0x02,0x18] +0x05,0x00,0x85,0xd3,0xc1,0x04,0x02,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, 0.5, v2 ; encoding: [0x05,0x00,0x85,0xd3,0xf0,0x04,0x02,0x18] +0x05,0x00,0x85,0xd3,0xf0,0x04,0x02,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, -4.0, v2 ; encoding: [0x05,0x00,0x85,0xd3,0xf7,0x04,0x02,0x18] +0x05,0x00,0x85,0xd3,0xf7,0x04,0x02,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, v1, v255 ; encoding: [0x05,0x00,0x85,0xd3,0x01,0xff,0x03,0x18] +0x05,0x00,0x85,0xd3,0x01,0xff,0x03,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, v1, s2 ; encoding: [0x05,0x00,0x85,0xd3,0x01,0x05,0x00,0x18] +0x05,0x00,0x85,0xd3,0x01,0x05,0x00,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, v1, s101 ; encoding: [0x05,0x00,0x85,0xd3,0x01,0xcb,0x00,0x18] +0x05,0x00,0x85,0xd3,0x01,0xcb,0x00,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, v1, flat_scratch_lo ; encoding: [0x05,0x00,0x85,0xd3,0x01,0xcd,0x00,0x18] +0x05,0x00,0x85,0xd3,0x01,0xcd,0x00,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, v1, flat_scratch_hi ; encoding: [0x05,0x00,0x85,0xd3,0x01,0xcf,0x00,0x18] +0x05,0x00,0x85,0xd3,0x01,0xcf,0x00,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, v1, vcc_lo ; encoding: [0x05,0x00,0x85,0xd3,0x01,0xd5,0x00,0x18] +0x05,0x00,0x85,0xd3,0x01,0xd5,0x00,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, v1, vcc_hi ; encoding: [0x05,0x00,0x85,0xd3,0x01,0xd7,0x00,0x18] +0x05,0x00,0x85,0xd3,0x01,0xd7,0x00,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, v1, m0 ; encoding: [0x05,0x00,0x85,0xd3,0x01,0xf9,0x00,0x18] +0x05,0x00,0x85,0xd3,0x01,0xf9,0x00,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, v1, exec_lo ; encoding: [0x05,0x00,0x85,0xd3,0x01,0xfd,0x00,0x18] +0x05,0x00,0x85,0xd3,0x01,0xfd,0x00,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, v1, exec_hi ; encoding: [0x05,0x00,0x85,0xd3,0x01,0xff,0x00,0x18] +0x05,0x00,0x85,0xd3,0x01,0xff,0x00,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, v1, 0 ; encoding: [0x05,0x00,0x85,0xd3,0x01,0x01,0x01,0x18] +0x05,0x00,0x85,0xd3,0x01,0x01,0x01,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, v1, -1 ; encoding: [0x05,0x00,0x85,0xd3,0x01,0x83,0x01,0x18] +0x05,0x00,0x85,0xd3,0x01,0x83,0x01,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, v1, 0.5 ; encoding: [0x05,0x00,0x85,0xd3,0x01,0xe1,0x01,0x18] +0x05,0x00,0x85,0xd3,0x01,0xe1,0x01,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, v1, -4.0 ; encoding: [0x05,0x00,0x85,0xd3,0x01,0xef,0x01,0x18] +0x05,0x00,0x85,0xd3,0x01,0xef,0x01,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, v1, v2 op_sel:[1,0] ; encoding: [0x05,0x08,0x85,0xd3,0x01,0x05,0x02,0x18] +0x05,0x08,0x85,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, v1, v2 op_sel:[0,1] ; encoding: [0x05,0x10,0x85,0xd3,0x01,0x05,0x02,0x18] +0x05,0x10,0x85,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, v1, v2 op_sel:[1,1] ; encoding: [0x05,0x18,0x85,0xd3,0x01,0x05,0x02,0x18] +0x05,0x18,0x85,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_lshrrev_b16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x00,0x85,0xd3,0x01,0x05,0x02,0x00] +0x05,0x00,0x85,0xd3,0x01,0x05,0x02,0x00 + +# CHECK: v_pk_lshrrev_b16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x00,0x85,0xd3,0x01,0x05,0x02,0x08] +0x05,0x00,0x85,0xd3,0x01,0x05,0x02,0x08 + +# CHECK: v_pk_lshrrev_b16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x00,0x85,0xd3,0x01,0x05,0x02,0x10] +0x05,0x00,0x85,0xd3,0x01,0x05,0x02,0x10 + +# CHECK: v_pk_lshrrev_b16 v5, v1, v2 clamp ; encoding: [0x05,0x80,0x85,0xd3,0x01,0x05,0x02,0x18] +0x05,0x80,0x85,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_max_f16 v5, v1, v2 ; encoding: [0x05,0x00,0x92,0xd3,0x01,0x05,0x02,0x18] +0x05,0x00,0x92,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_max_f16 v255, v1, v2 ; encoding: [0xff,0x00,0x92,0xd3,0x01,0x05,0x02,0x18] +0xff,0x00,0x92,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_max_f16 v5, v255, v2 ; encoding: [0x05,0x00,0x92,0xd3,0xff,0x05,0x02,0x18] +0x05,0x00,0x92,0xd3,0xff,0x05,0x02,0x18 + +# CHECK: v_pk_max_f16 v5, s1, v2 ; encoding: [0x05,0x00,0x92,0xd3,0x01,0x04,0x02,0x18] +0x05,0x00,0x92,0xd3,0x01,0x04,0x02,0x18 + +# CHECK: v_pk_max_f16 v5, s101, v2 ; encoding: [0x05,0x00,0x92,0xd3,0x65,0x04,0x02,0x18] +0x05,0x00,0x92,0xd3,0x65,0x04,0x02,0x18 + +# CHECK: v_pk_max_f16 v5, flat_scratch_lo, v2 ; encoding: [0x05,0x00,0x92,0xd3,0x66,0x04,0x02,0x18] +0x05,0x00,0x92,0xd3,0x66,0x04,0x02,0x18 + +# CHECK: v_pk_max_f16 v5, flat_scratch_hi, v2 ; encoding: [0x05,0x00,0x92,0xd3,0x67,0x04,0x02,0x18] +0x05,0x00,0x92,0xd3,0x67,0x04,0x02,0x18 + +# CHECK: v_pk_max_f16 v5, vcc_lo, v2 ; encoding: [0x05,0x00,0x92,0xd3,0x6a,0x04,0x02,0x18] +0x05,0x00,0x92,0xd3,0x6a,0x04,0x02,0x18 + +# CHECK: v_pk_max_f16 v5, vcc_hi, v2 ; encoding: [0x05,0x00,0x92,0xd3,0x6b,0x04,0x02,0x18] +0x05,0x00,0x92,0xd3,0x6b,0x04,0x02,0x18 + +# CHECK: v_pk_max_f16 v5, exec_lo, v2 ; encoding: [0x05,0x00,0x92,0xd3,0x7e,0x04,0x02,0x18] +0x05,0x00,0x92,0xd3,0x7e,0x04,0x02,0x18 + +# CHECK: v_pk_max_f16 v5, exec_hi, v2 ; encoding: [0x05,0x00,0x92,0xd3,0x7f,0x04,0x02,0x18] +0x05,0x00,0x92,0xd3,0x7f,0x04,0x02,0x18 + +# CHECK: v_pk_max_f16 v5, -1, v2 ; encoding: [0x05,0x00,0x92,0xd3,0xc1,0x04,0x02,0x18] +0x05,0x00,0x92,0xd3,0xc1,0x04,0x02,0x18 + +# CHECK: v_pk_max_f16 v5, -4.0, v2 ; encoding: [0x05,0x00,0x92,0xd3,0xf7,0x04,0x02,0x18] +0x05,0x00,0x92,0xd3,0xf7,0x04,0x02,0x18 + +# CHECK: v_pk_max_f16 v5, v1, v255 ; encoding: [0x05,0x00,0x92,0xd3,0x01,0xff,0x03,0x18] +0x05,0x00,0x92,0xd3,0x01,0xff,0x03,0x18 + +# CHECK: v_pk_max_f16 v5, v1, s2 ; encoding: [0x05,0x00,0x92,0xd3,0x01,0x05,0x00,0x18] +0x05,0x00,0x92,0xd3,0x01,0x05,0x00,0x18 + +# CHECK: v_pk_max_f16 v5, v1, s101 ; encoding: [0x05,0x00,0x92,0xd3,0x01,0xcb,0x00,0x18] +0x05,0x00,0x92,0xd3,0x01,0xcb,0x00,0x18 + +# CHECK: v_pk_max_f16 v5, v1, flat_scratch_lo ; encoding: [0x05,0x00,0x92,0xd3,0x01,0xcd,0x00,0x18] +0x05,0x00,0x92,0xd3,0x01,0xcd,0x00,0x18 + +# CHECK: v_pk_max_f16 v5, v1, flat_scratch_hi ; encoding: [0x05,0x00,0x92,0xd3,0x01,0xcf,0x00,0x18] +0x05,0x00,0x92,0xd3,0x01,0xcf,0x00,0x18 + +# CHECK: v_pk_max_f16 v5, v1, vcc_lo ; encoding: [0x05,0x00,0x92,0xd3,0x01,0xd5,0x00,0x18] +0x05,0x00,0x92,0xd3,0x01,0xd5,0x00,0x18 + +# CHECK: v_pk_max_f16 v5, v1, vcc_hi ; encoding: [0x05,0x00,0x92,0xd3,0x01,0xd7,0x00,0x18] +0x05,0x00,0x92,0xd3,0x01,0xd7,0x00,0x18 + +# CHECK: v_pk_max_f16 v5, v1, exec_lo ; encoding: [0x05,0x00,0x92,0xd3,0x01,0xfd,0x00,0x18] +0x05,0x00,0x92,0xd3,0x01,0xfd,0x00,0x18 + +# CHECK: v_pk_max_f16 v5, v1, exec_hi ; encoding: [0x05,0x00,0x92,0xd3,0x01,0xff,0x00,0x18] +0x05,0x00,0x92,0xd3,0x01,0xff,0x00,0x18 + +# CHECK: v_pk_max_f16 v5, v1, -1 ; encoding: [0x05,0x00,0x92,0xd3,0x01,0x83,0x01,0x18] +0x05,0x00,0x92,0xd3,0x01,0x83,0x01,0x18 + +# CHECK: v_pk_max_f16 v5, v1, -4.0 ; encoding: [0x05,0x00,0x92,0xd3,0x01,0xef,0x01,0x18] +0x05,0x00,0x92,0xd3,0x01,0xef,0x01,0x18 + +# CHECK: v_pk_max_f16 v5, v1, v2 op_sel:[1,0] ; encoding: [0x05,0x08,0x92,0xd3,0x01,0x05,0x02,0x18] +0x05,0x08,0x92,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_max_f16 v5, v1, v2 op_sel:[0,1] ; encoding: [0x05,0x10,0x92,0xd3,0x01,0x05,0x02,0x18] +0x05,0x10,0x92,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_max_f16 v5, v1, v2 op_sel:[1,1] ; encoding: [0x05,0x18,0x92,0xd3,0x01,0x05,0x02,0x18] +0x05,0x18,0x92,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_max_f16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x00,0x92,0xd3,0x01,0x05,0x02,0x00] +0x05,0x00,0x92,0xd3,0x01,0x05,0x02,0x00 + +# CHECK: v_pk_max_f16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x00,0x92,0xd3,0x01,0x05,0x02,0x08] +0x05,0x00,0x92,0xd3,0x01,0x05,0x02,0x08 + +# CHECK: v_pk_max_f16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x00,0x92,0xd3,0x01,0x05,0x02,0x10] +0x05,0x00,0x92,0xd3,0x01,0x05,0x02,0x10 + +# CHECK: v_pk_max_f16 v5, v1, v2 neg_lo:[1,0] ; encoding: [0x05,0x00,0x92,0xd3,0x01,0x05,0x02,0x38] +0x05,0x00,0x92,0xd3,0x01,0x05,0x02,0x38 + +# CHECK: v_pk_max_f16 v5, v1, v2 neg_lo:[0,1] ; encoding: [0x05,0x00,0x92,0xd3,0x01,0x05,0x02,0x58] +0x05,0x00,0x92,0xd3,0x01,0x05,0x02,0x58 + +# CHECK: v_pk_max_f16 v5, v1, v2 neg_lo:[1,1] ; encoding: [0x05,0x00,0x92,0xd3,0x01,0x05,0x02,0x78] +0x05,0x00,0x92,0xd3,0x01,0x05,0x02,0x78 + +# CHECK: v_pk_max_f16 v5, v1, v2 neg_hi:[1,0] ; encoding: [0x05,0x01,0x92,0xd3,0x01,0x05,0x02,0x18] +0x05,0x01,0x92,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_max_f16 v5, v1, v2 neg_hi:[0,1] ; encoding: [0x05,0x02,0x92,0xd3,0x01,0x05,0x02,0x18] +0x05,0x02,0x92,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_max_f16 v5, v1, v2 neg_hi:[1,1] ; encoding: [0x05,0x03,0x92,0xd3,0x01,0x05,0x02,0x18] +0x05,0x03,0x92,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_max_i16 v5, v1, v2 ; encoding: [0x05,0x00,0x87,0xd3,0x01,0x05,0x02,0x18] +0x05,0x00,0x87,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_max_i16 v255, v1, v2 ; encoding: [0xff,0x00,0x87,0xd3,0x01,0x05,0x02,0x18] +0xff,0x00,0x87,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_max_i16 v5, v255, v2 ; encoding: [0x05,0x00,0x87,0xd3,0xff,0x05,0x02,0x18] +0x05,0x00,0x87,0xd3,0xff,0x05,0x02,0x18 + +# CHECK: v_pk_max_i16 v5, s1, v2 ; encoding: [0x05,0x00,0x87,0xd3,0x01,0x04,0x02,0x18] +0x05,0x00,0x87,0xd3,0x01,0x04,0x02,0x18 + +# CHECK: v_pk_max_i16 v5, s101, v2 ; encoding: [0x05,0x00,0x87,0xd3,0x65,0x04,0x02,0x18] +0x05,0x00,0x87,0xd3,0x65,0x04,0x02,0x18 + +# CHECK: v_pk_max_i16 v5, flat_scratch_lo, v2 ; encoding: [0x05,0x00,0x87,0xd3,0x66,0x04,0x02,0x18] +0x05,0x00,0x87,0xd3,0x66,0x04,0x02,0x18 + +# CHECK: v_pk_max_i16 v5, flat_scratch_hi, v2 ; encoding: [0x05,0x00,0x87,0xd3,0x67,0x04,0x02,0x18] +0x05,0x00,0x87,0xd3,0x67,0x04,0x02,0x18 + +# CHECK: v_pk_max_i16 v5, vcc_lo, v2 ; encoding: [0x05,0x00,0x87,0xd3,0x6a,0x04,0x02,0x18] +0x05,0x00,0x87,0xd3,0x6a,0x04,0x02,0x18 + +# CHECK: v_pk_max_i16 v5, vcc_hi, v2 ; encoding: [0x05,0x00,0x87,0xd3,0x6b,0x04,0x02,0x18] +0x05,0x00,0x87,0xd3,0x6b,0x04,0x02,0x18 + +# CHECK: v_pk_max_i16 v5, m0, v2 ; encoding: [0x05,0x00,0x87,0xd3,0x7c,0x04,0x02,0x18] +0x05,0x00,0x87,0xd3,0x7c,0x04,0x02,0x18 + +# CHECK: v_pk_max_i16 v5, exec_lo, v2 ; encoding: [0x05,0x00,0x87,0xd3,0x7e,0x04,0x02,0x18] +0x05,0x00,0x87,0xd3,0x7e,0x04,0x02,0x18 + +# CHECK: v_pk_max_i16 v5, exec_hi, v2 ; encoding: [0x05,0x00,0x87,0xd3,0x7f,0x04,0x02,0x18] +0x05,0x00,0x87,0xd3,0x7f,0x04,0x02,0x18 + +# CHECK: v_pk_max_i16 v5, 0, v2 ; encoding: [0x05,0x00,0x87,0xd3,0x80,0x04,0x02,0x18] +0x05,0x00,0x87,0xd3,0x80,0x04,0x02,0x18 + +# CHECK: v_pk_max_i16 v5, -1, v2 ; encoding: [0x05,0x00,0x87,0xd3,0xc1,0x04,0x02,0x18] +0x05,0x00,0x87,0xd3,0xc1,0x04,0x02,0x18 + +# CHECK: v_pk_max_i16 v5, 0.5, v2 ; encoding: [0x05,0x00,0x87,0xd3,0xf0,0x04,0x02,0x18] +0x05,0x00,0x87,0xd3,0xf0,0x04,0x02,0x18 + +# CHECK: v_pk_max_i16 v5, -4.0, v2 ; encoding: [0x05,0x00,0x87,0xd3,0xf7,0x04,0x02,0x18] +0x05,0x00,0x87,0xd3,0xf7,0x04,0x02,0x18 + +# CHECK: v_pk_max_i16 v5, v1, v255 ; encoding: [0x05,0x00,0x87,0xd3,0x01,0xff,0x03,0x18] +0x05,0x00,0x87,0xd3,0x01,0xff,0x03,0x18 + +# CHECK: v_pk_max_i16 v5, v1, s2 ; encoding: [0x05,0x00,0x87,0xd3,0x01,0x05,0x00,0x18] +0x05,0x00,0x87,0xd3,0x01,0x05,0x00,0x18 + +# CHECK: v_pk_max_i16 v5, v1, s101 ; encoding: [0x05,0x00,0x87,0xd3,0x01,0xcb,0x00,0x18] +0x05,0x00,0x87,0xd3,0x01,0xcb,0x00,0x18 + +# CHECK: v_pk_max_i16 v5, v1, flat_scratch_lo ; encoding: [0x05,0x00,0x87,0xd3,0x01,0xcd,0x00,0x18] +0x05,0x00,0x87,0xd3,0x01,0xcd,0x00,0x18 + +# CHECK: v_pk_max_i16 v5, v1, flat_scratch_hi ; encoding: [0x05,0x00,0x87,0xd3,0x01,0xcf,0x00,0x18] +0x05,0x00,0x87,0xd3,0x01,0xcf,0x00,0x18 + +# CHECK: v_pk_max_i16 v5, v1, vcc_lo ; encoding: [0x05,0x00,0x87,0xd3,0x01,0xd5,0x00,0x18] +0x05,0x00,0x87,0xd3,0x01,0xd5,0x00,0x18 + +# CHECK: v_pk_max_i16 v5, v1, vcc_hi ; encoding: [0x05,0x00,0x87,0xd3,0x01,0xd7,0x00,0x18] +0x05,0x00,0x87,0xd3,0x01,0xd7,0x00,0x18 + +# CHECK: v_pk_max_i16 v5, v1, m0 ; encoding: [0x05,0x00,0x87,0xd3,0x01,0xf9,0x00,0x18] +0x05,0x00,0x87,0xd3,0x01,0xf9,0x00,0x18 + +# CHECK: v_pk_max_i16 v5, v1, exec_lo ; encoding: [0x05,0x00,0x87,0xd3,0x01,0xfd,0x00,0x18] +0x05,0x00,0x87,0xd3,0x01,0xfd,0x00,0x18 + +# CHECK: v_pk_max_i16 v5, v1, exec_hi ; encoding: [0x05,0x00,0x87,0xd3,0x01,0xff,0x00,0x18] +0x05,0x00,0x87,0xd3,0x01,0xff,0x00,0x18 + +# CHECK: v_pk_max_i16 v5, v1, 0 ; encoding: [0x05,0x00,0x87,0xd3,0x01,0x01,0x01,0x18] +0x05,0x00,0x87,0xd3,0x01,0x01,0x01,0x18 + +# CHECK: v_pk_max_i16 v5, v1, -1 ; encoding: [0x05,0x00,0x87,0xd3,0x01,0x83,0x01,0x18] +0x05,0x00,0x87,0xd3,0x01,0x83,0x01,0x18 + +# CHECK: v_pk_max_i16 v5, v1, 0.5 ; encoding: [0x05,0x00,0x87,0xd3,0x01,0xe1,0x01,0x18] +0x05,0x00,0x87,0xd3,0x01,0xe1,0x01,0x18 + +# CHECK: v_pk_max_i16 v5, v1, -4.0 ; encoding: [0x05,0x00,0x87,0xd3,0x01,0xef,0x01,0x18] +0x05,0x00,0x87,0xd3,0x01,0xef,0x01,0x18 + +# CHECK: v_pk_max_i16 v5, v1, v2 op_sel:[1,0] ; encoding: [0x05,0x08,0x87,0xd3,0x01,0x05,0x02,0x18] +0x05,0x08,0x87,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_max_i16 v5, v1, v2 op_sel:[0,1] ; encoding: [0x05,0x10,0x87,0xd3,0x01,0x05,0x02,0x18] +0x05,0x10,0x87,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_max_i16 v5, v1, v2 op_sel:[1,1] ; encoding: [0x05,0x18,0x87,0xd3,0x01,0x05,0x02,0x18] +0x05,0x18,0x87,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_max_i16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x00,0x87,0xd3,0x01,0x05,0x02,0x00] +0x05,0x00,0x87,0xd3,0x01,0x05,0x02,0x00 + +# CHECK: v_pk_max_i16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x00,0x87,0xd3,0x01,0x05,0x02,0x08] +0x05,0x00,0x87,0xd3,0x01,0x05,0x02,0x08 + +# CHECK: v_pk_max_i16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x00,0x87,0xd3,0x01,0x05,0x02,0x10] +0x05,0x00,0x87,0xd3,0x01,0x05,0x02,0x10 + +# CHECK: v_pk_max_i16 v5, v1, v2 clamp ; encoding: [0x05,0x80,0x87,0xd3,0x01,0x05,0x02,0x18] +0x05,0x80,0x87,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_max_u16 v5, v1, v2 ; encoding: [0x05,0x00,0x8c,0xd3,0x01,0x05,0x02,0x18] +0x05,0x00,0x8c,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_max_u16 v255, v1, v2 ; encoding: [0xff,0x00,0x8c,0xd3,0x01,0x05,0x02,0x18] +0xff,0x00,0x8c,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_max_u16 v5, v255, v2 ; encoding: [0x05,0x00,0x8c,0xd3,0xff,0x05,0x02,0x18] +0x05,0x00,0x8c,0xd3,0xff,0x05,0x02,0x18 + +# CHECK: v_pk_max_u16 v5, s1, v2 ; encoding: [0x05,0x00,0x8c,0xd3,0x01,0x04,0x02,0x18] +0x05,0x00,0x8c,0xd3,0x01,0x04,0x02,0x18 + +# CHECK: v_pk_max_u16 v5, s101, v2 ; encoding: [0x05,0x00,0x8c,0xd3,0x65,0x04,0x02,0x18] +0x05,0x00,0x8c,0xd3,0x65,0x04,0x02,0x18 + +# CHECK: v_pk_max_u16 v5, flat_scratch_lo, v2 ; encoding: [0x05,0x00,0x8c,0xd3,0x66,0x04,0x02,0x18] +0x05,0x00,0x8c,0xd3,0x66,0x04,0x02,0x18 + +# CHECK: v_pk_max_u16 v5, flat_scratch_hi, v2 ; encoding: [0x05,0x00,0x8c,0xd3,0x67,0x04,0x02,0x18] +0x05,0x00,0x8c,0xd3,0x67,0x04,0x02,0x18 + +# CHECK: v_pk_max_u16 v5, vcc_lo, v2 ; encoding: [0x05,0x00,0x8c,0xd3,0x6a,0x04,0x02,0x18] +0x05,0x00,0x8c,0xd3,0x6a,0x04,0x02,0x18 + +# CHECK: v_pk_max_u16 v5, vcc_hi, v2 ; encoding: [0x05,0x00,0x8c,0xd3,0x6b,0x04,0x02,0x18] +0x05,0x00,0x8c,0xd3,0x6b,0x04,0x02,0x18 + +# CHECK: v_pk_max_u16 v5, m0, v2 ; encoding: [0x05,0x00,0x8c,0xd3,0x7c,0x04,0x02,0x18] +0x05,0x00,0x8c,0xd3,0x7c,0x04,0x02,0x18 + +# CHECK: v_pk_max_u16 v5, exec_lo, v2 ; encoding: [0x05,0x00,0x8c,0xd3,0x7e,0x04,0x02,0x18] +0x05,0x00,0x8c,0xd3,0x7e,0x04,0x02,0x18 + +# CHECK: v_pk_max_u16 v5, exec_hi, v2 ; encoding: [0x05,0x00,0x8c,0xd3,0x7f,0x04,0x02,0x18] +0x05,0x00,0x8c,0xd3,0x7f,0x04,0x02,0x18 + +# CHECK: v_pk_max_u16 v5, 0, v2 ; encoding: [0x05,0x00,0x8c,0xd3,0x80,0x04,0x02,0x18] +0x05,0x00,0x8c,0xd3,0x80,0x04,0x02,0x18 + +# CHECK: v_pk_max_u16 v5, -1, v2 ; encoding: [0x05,0x00,0x8c,0xd3,0xc1,0x04,0x02,0x18] +0x05,0x00,0x8c,0xd3,0xc1,0x04,0x02,0x18 + +# CHECK: v_pk_max_u16 v5, 0.5, v2 ; encoding: [0x05,0x00,0x8c,0xd3,0xf0,0x04,0x02,0x18] +0x05,0x00,0x8c,0xd3,0xf0,0x04,0x02,0x18 + +# CHECK: v_pk_max_u16 v5, -4.0, v2 ; encoding: [0x05,0x00,0x8c,0xd3,0xf7,0x04,0x02,0x18] +0x05,0x00,0x8c,0xd3,0xf7,0x04,0x02,0x18 + +# CHECK: v_pk_max_u16 v5, v1, v255 ; encoding: [0x05,0x00,0x8c,0xd3,0x01,0xff,0x03,0x18] +0x05,0x00,0x8c,0xd3,0x01,0xff,0x03,0x18 + +# CHECK: v_pk_max_u16 v5, v1, s2 ; encoding: [0x05,0x00,0x8c,0xd3,0x01,0x05,0x00,0x18] +0x05,0x00,0x8c,0xd3,0x01,0x05,0x00,0x18 + +# CHECK: v_pk_max_u16 v5, v1, s101 ; encoding: [0x05,0x00,0x8c,0xd3,0x01,0xcb,0x00,0x18] +0x05,0x00,0x8c,0xd3,0x01,0xcb,0x00,0x18 + +# CHECK: v_pk_max_u16 v5, v1, flat_scratch_lo ; encoding: [0x05,0x00,0x8c,0xd3,0x01,0xcd,0x00,0x18] +0x05,0x00,0x8c,0xd3,0x01,0xcd,0x00,0x18 + +# CHECK: v_pk_max_u16 v5, v1, flat_scratch_hi ; encoding: [0x05,0x00,0x8c,0xd3,0x01,0xcf,0x00,0x18] +0x05,0x00,0x8c,0xd3,0x01,0xcf,0x00,0x18 + +# CHECK: v_pk_max_u16 v5, v1, vcc_lo ; encoding: [0x05,0x00,0x8c,0xd3,0x01,0xd5,0x00,0x18] +0x05,0x00,0x8c,0xd3,0x01,0xd5,0x00,0x18 + +# CHECK: v_pk_max_u16 v5, v1, vcc_hi ; encoding: [0x05,0x00,0x8c,0xd3,0x01,0xd7,0x00,0x18] +0x05,0x00,0x8c,0xd3,0x01,0xd7,0x00,0x18 + +# CHECK: v_pk_max_u16 v5, v1, m0 ; encoding: [0x05,0x00,0x8c,0xd3,0x01,0xf9,0x00,0x18] +0x05,0x00,0x8c,0xd3,0x01,0xf9,0x00,0x18 + +# CHECK: v_pk_max_u16 v5, v1, exec_lo ; encoding: [0x05,0x00,0x8c,0xd3,0x01,0xfd,0x00,0x18] +0x05,0x00,0x8c,0xd3,0x01,0xfd,0x00,0x18 + +# CHECK: v_pk_max_u16 v5, v1, exec_hi ; encoding: [0x05,0x00,0x8c,0xd3,0x01,0xff,0x00,0x18] +0x05,0x00,0x8c,0xd3,0x01,0xff,0x00,0x18 + +# CHECK: v_pk_max_u16 v5, v1, 0 ; encoding: [0x05,0x00,0x8c,0xd3,0x01,0x01,0x01,0x18] +0x05,0x00,0x8c,0xd3,0x01,0x01,0x01,0x18 + +# CHECK: v_pk_max_u16 v5, v1, -1 ; encoding: [0x05,0x00,0x8c,0xd3,0x01,0x83,0x01,0x18] +0x05,0x00,0x8c,0xd3,0x01,0x83,0x01,0x18 + +# CHECK: v_pk_max_u16 v5, v1, 0.5 ; encoding: [0x05,0x00,0x8c,0xd3,0x01,0xe1,0x01,0x18] +0x05,0x00,0x8c,0xd3,0x01,0xe1,0x01,0x18 + +# CHECK: v_pk_max_u16 v5, v1, -4.0 ; encoding: [0x05,0x00,0x8c,0xd3,0x01,0xef,0x01,0x18] +0x05,0x00,0x8c,0xd3,0x01,0xef,0x01,0x18 + +# CHECK: v_pk_max_u16 v5, v1, v2 op_sel:[1,0] ; encoding: [0x05,0x08,0x8c,0xd3,0x01,0x05,0x02,0x18] +0x05,0x08,0x8c,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_max_u16 v5, v1, v2 op_sel:[0,1] ; encoding: [0x05,0x10,0x8c,0xd3,0x01,0x05,0x02,0x18] +0x05,0x10,0x8c,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_max_u16 v5, v1, v2 op_sel:[1,1] ; encoding: [0x05,0x18,0x8c,0xd3,0x01,0x05,0x02,0x18] +0x05,0x18,0x8c,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_max_u16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x00,0x8c,0xd3,0x01,0x05,0x02,0x00] +0x05,0x00,0x8c,0xd3,0x01,0x05,0x02,0x00 + +# CHECK: v_pk_max_u16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x00,0x8c,0xd3,0x01,0x05,0x02,0x08] +0x05,0x00,0x8c,0xd3,0x01,0x05,0x02,0x08 + +# CHECK: v_pk_max_u16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x00,0x8c,0xd3,0x01,0x05,0x02,0x10] +0x05,0x00,0x8c,0xd3,0x01,0x05,0x02,0x10 + +# CHECK: v_pk_max_u16 v5, v1, v2 clamp ; encoding: [0x05,0x80,0x8c,0xd3,0x01,0x05,0x02,0x18] +0x05,0x80,0x8c,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_min_f16 v5, v1, v2 ; encoding: [0x05,0x00,0x91,0xd3,0x01,0x05,0x02,0x18] +0x05,0x00,0x91,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_min_f16 v255, v1, v2 ; encoding: [0xff,0x00,0x91,0xd3,0x01,0x05,0x02,0x18] +0xff,0x00,0x91,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_min_f16 v5, v255, v2 ; encoding: [0x05,0x00,0x91,0xd3,0xff,0x05,0x02,0x18] +0x05,0x00,0x91,0xd3,0xff,0x05,0x02,0x18 + +# CHECK: v_pk_min_f16 v5, s1, v2 ; encoding: [0x05,0x00,0x91,0xd3,0x01,0x04,0x02,0x18] +0x05,0x00,0x91,0xd3,0x01,0x04,0x02,0x18 + +# CHECK: v_pk_min_f16 v5, s101, v2 ; encoding: [0x05,0x00,0x91,0xd3,0x65,0x04,0x02,0x18] +0x05,0x00,0x91,0xd3,0x65,0x04,0x02,0x18 + +# CHECK: v_pk_min_f16 v5, flat_scratch_lo, v2 ; encoding: [0x05,0x00,0x91,0xd3,0x66,0x04,0x02,0x18] +0x05,0x00,0x91,0xd3,0x66,0x04,0x02,0x18 + +# CHECK: v_pk_min_f16 v5, flat_scratch_hi, v2 ; encoding: [0x05,0x00,0x91,0xd3,0x67,0x04,0x02,0x18] +0x05,0x00,0x91,0xd3,0x67,0x04,0x02,0x18 + +# CHECK: v_pk_min_f16 v5, vcc_lo, v2 ; encoding: [0x05,0x00,0x91,0xd3,0x6a,0x04,0x02,0x18] +0x05,0x00,0x91,0xd3,0x6a,0x04,0x02,0x18 + +# CHECK: v_pk_min_f16 v5, vcc_hi, v2 ; encoding: [0x05,0x00,0x91,0xd3,0x6b,0x04,0x02,0x18] +0x05,0x00,0x91,0xd3,0x6b,0x04,0x02,0x18 + +# CHECK: v_pk_min_f16 v5, exec_lo, v2 ; encoding: [0x05,0x00,0x91,0xd3,0x7e,0x04,0x02,0x18] +0x05,0x00,0x91,0xd3,0x7e,0x04,0x02,0x18 + +# CHECK: v_pk_min_f16 v5, exec_hi, v2 ; encoding: [0x05,0x00,0x91,0xd3,0x7f,0x04,0x02,0x18] +0x05,0x00,0x91,0xd3,0x7f,0x04,0x02,0x18 + +# CHECK: v_pk_min_f16 v5, -1, v2 ; encoding: [0x05,0x00,0x91,0xd3,0xc1,0x04,0x02,0x18] +0x05,0x00,0x91,0xd3,0xc1,0x04,0x02,0x18 + +# CHECK: v_pk_min_f16 v5, -4.0, v2 ; encoding: [0x05,0x00,0x91,0xd3,0xf7,0x04,0x02,0x18] +0x05,0x00,0x91,0xd3,0xf7,0x04,0x02,0x18 + +# CHECK: v_pk_min_f16 v5, v1, v255 ; encoding: [0x05,0x00,0x91,0xd3,0x01,0xff,0x03,0x18] +0x05,0x00,0x91,0xd3,0x01,0xff,0x03,0x18 + +# CHECK: v_pk_min_f16 v5, v1, s2 ; encoding: [0x05,0x00,0x91,0xd3,0x01,0x05,0x00,0x18] +0x05,0x00,0x91,0xd3,0x01,0x05,0x00,0x18 + +# CHECK: v_pk_min_f16 v5, v1, s101 ; encoding: [0x05,0x00,0x91,0xd3,0x01,0xcb,0x00,0x18] +0x05,0x00,0x91,0xd3,0x01,0xcb,0x00,0x18 + +# CHECK: v_pk_min_f16 v5, v1, flat_scratch_lo ; encoding: [0x05,0x00,0x91,0xd3,0x01,0xcd,0x00,0x18] +0x05,0x00,0x91,0xd3,0x01,0xcd,0x00,0x18 + +# CHECK: v_pk_min_f16 v5, v1, flat_scratch_hi ; encoding: [0x05,0x00,0x91,0xd3,0x01,0xcf,0x00,0x18] +0x05,0x00,0x91,0xd3,0x01,0xcf,0x00,0x18 + +# CHECK: v_pk_min_f16 v5, v1, vcc_lo ; encoding: [0x05,0x00,0x91,0xd3,0x01,0xd5,0x00,0x18] +0x05,0x00,0x91,0xd3,0x01,0xd5,0x00,0x18 + +# CHECK: v_pk_min_f16 v5, v1, vcc_hi ; encoding: [0x05,0x00,0x91,0xd3,0x01,0xd7,0x00,0x18] +0x05,0x00,0x91,0xd3,0x01,0xd7,0x00,0x18 + +# CHECK: v_pk_min_f16 v5, v1, exec_lo ; encoding: [0x05,0x00,0x91,0xd3,0x01,0xfd,0x00,0x18] +0x05,0x00,0x91,0xd3,0x01,0xfd,0x00,0x18 + +# CHECK: v_pk_min_f16 v5, v1, exec_hi ; encoding: [0x05,0x00,0x91,0xd3,0x01,0xff,0x00,0x18] +0x05,0x00,0x91,0xd3,0x01,0xff,0x00,0x18 + +# CHECK: v_pk_min_f16 v5, v1, -1 ; encoding: [0x05,0x00,0x91,0xd3,0x01,0x83,0x01,0x18] +0x05,0x00,0x91,0xd3,0x01,0x83,0x01,0x18 + +# CHECK: v_pk_min_f16 v5, v1, -4.0 ; encoding: [0x05,0x00,0x91,0xd3,0x01,0xef,0x01,0x18] +0x05,0x00,0x91,0xd3,0x01,0xef,0x01,0x18 + +# CHECK: v_pk_min_f16 v5, v1, v2 op_sel:[1,0] ; encoding: [0x05,0x08,0x91,0xd3,0x01,0x05,0x02,0x18] +0x05,0x08,0x91,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_min_f16 v5, v1, v2 op_sel:[0,1] ; encoding: [0x05,0x10,0x91,0xd3,0x01,0x05,0x02,0x18] +0x05,0x10,0x91,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_min_f16 v5, v1, v2 op_sel:[1,1] ; encoding: [0x05,0x18,0x91,0xd3,0x01,0x05,0x02,0x18] +0x05,0x18,0x91,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_min_f16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x00,0x91,0xd3,0x01,0x05,0x02,0x00] +0x05,0x00,0x91,0xd3,0x01,0x05,0x02,0x00 + +# CHECK: v_pk_min_f16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x00,0x91,0xd3,0x01,0x05,0x02,0x08] +0x05,0x00,0x91,0xd3,0x01,0x05,0x02,0x08 + +# CHECK: v_pk_min_f16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x00,0x91,0xd3,0x01,0x05,0x02,0x10] +0x05,0x00,0x91,0xd3,0x01,0x05,0x02,0x10 + +# CHECK: v_pk_min_f16 v5, v1, v2 neg_lo:[1,0] ; encoding: [0x05,0x00,0x91,0xd3,0x01,0x05,0x02,0x38] +0x05,0x00,0x91,0xd3,0x01,0x05,0x02,0x38 + +# CHECK: v_pk_min_f16 v5, v1, v2 neg_lo:[0,1] ; encoding: [0x05,0x00,0x91,0xd3,0x01,0x05,0x02,0x58] +0x05,0x00,0x91,0xd3,0x01,0x05,0x02,0x58 + +# CHECK: v_pk_min_f16 v5, v1, v2 neg_lo:[1,1] ; encoding: [0x05,0x00,0x91,0xd3,0x01,0x05,0x02,0x78] +0x05,0x00,0x91,0xd3,0x01,0x05,0x02,0x78 + +# CHECK: v_pk_min_f16 v5, v1, v2 neg_hi:[1,0] ; encoding: [0x05,0x01,0x91,0xd3,0x01,0x05,0x02,0x18] +0x05,0x01,0x91,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_min_f16 v5, v1, v2 neg_hi:[0,1] ; encoding: [0x05,0x02,0x91,0xd3,0x01,0x05,0x02,0x18] +0x05,0x02,0x91,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_min_f16 v5, v1, v2 neg_hi:[1,1] ; encoding: [0x05,0x03,0x91,0xd3,0x01,0x05,0x02,0x18] +0x05,0x03,0x91,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_min_i16 v5, v1, v2 ; encoding: [0x05,0x00,0x88,0xd3,0x01,0x05,0x02,0x18] +0x05,0x00,0x88,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_min_i16 v255, v1, v2 ; encoding: [0xff,0x00,0x88,0xd3,0x01,0x05,0x02,0x18] +0xff,0x00,0x88,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_min_i16 v5, v255, v2 ; encoding: [0x05,0x00,0x88,0xd3,0xff,0x05,0x02,0x18] +0x05,0x00,0x88,0xd3,0xff,0x05,0x02,0x18 + +# CHECK: v_pk_min_i16 v5, s1, v2 ; encoding: [0x05,0x00,0x88,0xd3,0x01,0x04,0x02,0x18] +0x05,0x00,0x88,0xd3,0x01,0x04,0x02,0x18 + +# CHECK: v_pk_min_i16 v5, s101, v2 ; encoding: [0x05,0x00,0x88,0xd3,0x65,0x04,0x02,0x18] +0x05,0x00,0x88,0xd3,0x65,0x04,0x02,0x18 + +# CHECK: v_pk_min_i16 v5, flat_scratch_lo, v2 ; encoding: [0x05,0x00,0x88,0xd3,0x66,0x04,0x02,0x18] +0x05,0x00,0x88,0xd3,0x66,0x04,0x02,0x18 + +# CHECK: v_pk_min_i16 v5, flat_scratch_hi, v2 ; encoding: [0x05,0x00,0x88,0xd3,0x67,0x04,0x02,0x18] +0x05,0x00,0x88,0xd3,0x67,0x04,0x02,0x18 + +# CHECK: v_pk_min_i16 v5, vcc_lo, v2 ; encoding: [0x05,0x00,0x88,0xd3,0x6a,0x04,0x02,0x18] +0x05,0x00,0x88,0xd3,0x6a,0x04,0x02,0x18 + +# CHECK: v_pk_min_i16 v5, vcc_hi, v2 ; encoding: [0x05,0x00,0x88,0xd3,0x6b,0x04,0x02,0x18] +0x05,0x00,0x88,0xd3,0x6b,0x04,0x02,0x18 + +# CHECK: v_pk_min_i16 v5, m0, v2 ; encoding: [0x05,0x00,0x88,0xd3,0x7c,0x04,0x02,0x18] +0x05,0x00,0x88,0xd3,0x7c,0x04,0x02,0x18 + +# CHECK: v_pk_min_i16 v5, exec_lo, v2 ; encoding: [0x05,0x00,0x88,0xd3,0x7e,0x04,0x02,0x18] +0x05,0x00,0x88,0xd3,0x7e,0x04,0x02,0x18 + +# CHECK: v_pk_min_i16 v5, exec_hi, v2 ; encoding: [0x05,0x00,0x88,0xd3,0x7f,0x04,0x02,0x18] +0x05,0x00,0x88,0xd3,0x7f,0x04,0x02,0x18 + +# CHECK: v_pk_min_i16 v5, 0, v2 ; encoding: [0x05,0x00,0x88,0xd3,0x80,0x04,0x02,0x18] +0x05,0x00,0x88,0xd3,0x80,0x04,0x02,0x18 + +# CHECK: v_pk_min_i16 v5, -1, v2 ; encoding: [0x05,0x00,0x88,0xd3,0xc1,0x04,0x02,0x18] +0x05,0x00,0x88,0xd3,0xc1,0x04,0x02,0x18 + +# CHECK: v_pk_min_i16 v5, 0.5, v2 ; encoding: [0x05,0x00,0x88,0xd3,0xf0,0x04,0x02,0x18] +0x05,0x00,0x88,0xd3,0xf0,0x04,0x02,0x18 + +# CHECK: v_pk_min_i16 v5, -4.0, v2 ; encoding: [0x05,0x00,0x88,0xd3,0xf7,0x04,0x02,0x18] +0x05,0x00,0x88,0xd3,0xf7,0x04,0x02,0x18 + +# CHECK: v_pk_min_i16 v5, v1, v255 ; encoding: [0x05,0x00,0x88,0xd3,0x01,0xff,0x03,0x18] +0x05,0x00,0x88,0xd3,0x01,0xff,0x03,0x18 + +# CHECK: v_pk_min_i16 v5, v1, s2 ; encoding: [0x05,0x00,0x88,0xd3,0x01,0x05,0x00,0x18] +0x05,0x00,0x88,0xd3,0x01,0x05,0x00,0x18 + +# CHECK: v_pk_min_i16 v5, v1, s101 ; encoding: [0x05,0x00,0x88,0xd3,0x01,0xcb,0x00,0x18] +0x05,0x00,0x88,0xd3,0x01,0xcb,0x00,0x18 + +# CHECK: v_pk_min_i16 v5, v1, flat_scratch_lo ; encoding: [0x05,0x00,0x88,0xd3,0x01,0xcd,0x00,0x18] +0x05,0x00,0x88,0xd3,0x01,0xcd,0x00,0x18 + +# CHECK: v_pk_min_i16 v5, v1, flat_scratch_hi ; encoding: [0x05,0x00,0x88,0xd3,0x01,0xcf,0x00,0x18] +0x05,0x00,0x88,0xd3,0x01,0xcf,0x00,0x18 + +# CHECK: v_pk_min_i16 v5, v1, vcc_lo ; encoding: [0x05,0x00,0x88,0xd3,0x01,0xd5,0x00,0x18] +0x05,0x00,0x88,0xd3,0x01,0xd5,0x00,0x18 + +# CHECK: v_pk_min_i16 v5, v1, vcc_hi ; encoding: [0x05,0x00,0x88,0xd3,0x01,0xd7,0x00,0x18] +0x05,0x00,0x88,0xd3,0x01,0xd7,0x00,0x18 + +# CHECK: v_pk_min_i16 v5, v1, m0 ; encoding: [0x05,0x00,0x88,0xd3,0x01,0xf9,0x00,0x18] +0x05,0x00,0x88,0xd3,0x01,0xf9,0x00,0x18 + +# CHECK: v_pk_min_i16 v5, v1, exec_lo ; encoding: [0x05,0x00,0x88,0xd3,0x01,0xfd,0x00,0x18] +0x05,0x00,0x88,0xd3,0x01,0xfd,0x00,0x18 + +# CHECK: v_pk_min_i16 v5, v1, exec_hi ; encoding: [0x05,0x00,0x88,0xd3,0x01,0xff,0x00,0x18] +0x05,0x00,0x88,0xd3,0x01,0xff,0x00,0x18 + +# CHECK: v_pk_min_i16 v5, v1, 0 ; encoding: [0x05,0x00,0x88,0xd3,0x01,0x01,0x01,0x18] +0x05,0x00,0x88,0xd3,0x01,0x01,0x01,0x18 + +# CHECK: v_pk_min_i16 v5, v1, -1 ; encoding: [0x05,0x00,0x88,0xd3,0x01,0x83,0x01,0x18] +0x05,0x00,0x88,0xd3,0x01,0x83,0x01,0x18 + +# CHECK: v_pk_min_i16 v5, v1, 0.5 ; encoding: [0x05,0x00,0x88,0xd3,0x01,0xe1,0x01,0x18] +0x05,0x00,0x88,0xd3,0x01,0xe1,0x01,0x18 + +# CHECK: v_pk_min_i16 v5, v1, -4.0 ; encoding: [0x05,0x00,0x88,0xd3,0x01,0xef,0x01,0x18] +0x05,0x00,0x88,0xd3,0x01,0xef,0x01,0x18 + +# CHECK: v_pk_min_i16 v5, v1, v2 op_sel:[1,0] ; encoding: [0x05,0x08,0x88,0xd3,0x01,0x05,0x02,0x18] +0x05,0x08,0x88,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_min_i16 v5, v1, v2 op_sel:[0,1] ; encoding: [0x05,0x10,0x88,0xd3,0x01,0x05,0x02,0x18] +0x05,0x10,0x88,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_min_i16 v5, v1, v2 op_sel:[1,1] ; encoding: [0x05,0x18,0x88,0xd3,0x01,0x05,0x02,0x18] +0x05,0x18,0x88,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_min_i16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x00,0x88,0xd3,0x01,0x05,0x02,0x00] +0x05,0x00,0x88,0xd3,0x01,0x05,0x02,0x00 + +# CHECK: v_pk_min_i16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x00,0x88,0xd3,0x01,0x05,0x02,0x08] +0x05,0x00,0x88,0xd3,0x01,0x05,0x02,0x08 + +# CHECK: v_pk_min_i16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x00,0x88,0xd3,0x01,0x05,0x02,0x10] +0x05,0x00,0x88,0xd3,0x01,0x05,0x02,0x10 + +# CHECK: v_pk_min_i16 v5, v1, v2 clamp ; encoding: [0x05,0x80,0x88,0xd3,0x01,0x05,0x02,0x18] +0x05,0x80,0x88,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_min_u16 v5, v1, v2 ; encoding: [0x05,0x00,0x8d,0xd3,0x01,0x05,0x02,0x18] +0x05,0x00,0x8d,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_min_u16 v255, v1, v2 ; encoding: [0xff,0x00,0x8d,0xd3,0x01,0x05,0x02,0x18] +0xff,0x00,0x8d,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_min_u16 v5, v255, v2 ; encoding: [0x05,0x00,0x8d,0xd3,0xff,0x05,0x02,0x18] +0x05,0x00,0x8d,0xd3,0xff,0x05,0x02,0x18 + +# CHECK: v_pk_min_u16 v5, s1, v2 ; encoding: [0x05,0x00,0x8d,0xd3,0x01,0x04,0x02,0x18] +0x05,0x00,0x8d,0xd3,0x01,0x04,0x02,0x18 + +# CHECK: v_pk_min_u16 v5, s101, v2 ; encoding: [0x05,0x00,0x8d,0xd3,0x65,0x04,0x02,0x18] +0x05,0x00,0x8d,0xd3,0x65,0x04,0x02,0x18 + +# CHECK: v_pk_min_u16 v5, flat_scratch_lo, v2 ; encoding: [0x05,0x00,0x8d,0xd3,0x66,0x04,0x02,0x18] +0x05,0x00,0x8d,0xd3,0x66,0x04,0x02,0x18 + +# CHECK: v_pk_min_u16 v5, flat_scratch_hi, v2 ; encoding: [0x05,0x00,0x8d,0xd3,0x67,0x04,0x02,0x18] +0x05,0x00,0x8d,0xd3,0x67,0x04,0x02,0x18 + +# CHECK: v_pk_min_u16 v5, vcc_lo, v2 ; encoding: [0x05,0x00,0x8d,0xd3,0x6a,0x04,0x02,0x18] +0x05,0x00,0x8d,0xd3,0x6a,0x04,0x02,0x18 + +# CHECK: v_pk_min_u16 v5, vcc_hi, v2 ; encoding: [0x05,0x00,0x8d,0xd3,0x6b,0x04,0x02,0x18] +0x05,0x00,0x8d,0xd3,0x6b,0x04,0x02,0x18 + +# CHECK: v_pk_min_u16 v5, m0, v2 ; encoding: [0x05,0x00,0x8d,0xd3,0x7c,0x04,0x02,0x18] +0x05,0x00,0x8d,0xd3,0x7c,0x04,0x02,0x18 + +# CHECK: v_pk_min_u16 v5, exec_lo, v2 ; encoding: [0x05,0x00,0x8d,0xd3,0x7e,0x04,0x02,0x18] +0x05,0x00,0x8d,0xd3,0x7e,0x04,0x02,0x18 + +# CHECK: v_pk_min_u16 v5, exec_hi, v2 ; encoding: [0x05,0x00,0x8d,0xd3,0x7f,0x04,0x02,0x18] +0x05,0x00,0x8d,0xd3,0x7f,0x04,0x02,0x18 + +# CHECK: v_pk_min_u16 v5, 0, v2 ; encoding: [0x05,0x00,0x8d,0xd3,0x80,0x04,0x02,0x18] +0x05,0x00,0x8d,0xd3,0x80,0x04,0x02,0x18 + +# CHECK: v_pk_min_u16 v5, -1, v2 ; encoding: [0x05,0x00,0x8d,0xd3,0xc1,0x04,0x02,0x18] +0x05,0x00,0x8d,0xd3,0xc1,0x04,0x02,0x18 + +# CHECK: v_pk_min_u16 v5, 0.5, v2 ; encoding: [0x05,0x00,0x8d,0xd3,0xf0,0x04,0x02,0x18] +0x05,0x00,0x8d,0xd3,0xf0,0x04,0x02,0x18 + +# CHECK: v_pk_min_u16 v5, -4.0, v2 ; encoding: [0x05,0x00,0x8d,0xd3,0xf7,0x04,0x02,0x18] +0x05,0x00,0x8d,0xd3,0xf7,0x04,0x02,0x18 + +# CHECK: v_pk_min_u16 v5, v1, v255 ; encoding: [0x05,0x00,0x8d,0xd3,0x01,0xff,0x03,0x18] +0x05,0x00,0x8d,0xd3,0x01,0xff,0x03,0x18 + +# CHECK: v_pk_min_u16 v5, v1, s2 ; encoding: [0x05,0x00,0x8d,0xd3,0x01,0x05,0x00,0x18] +0x05,0x00,0x8d,0xd3,0x01,0x05,0x00,0x18 + +# CHECK: v_pk_min_u16 v5, v1, s101 ; encoding: [0x05,0x00,0x8d,0xd3,0x01,0xcb,0x00,0x18] +0x05,0x00,0x8d,0xd3,0x01,0xcb,0x00,0x18 + +# CHECK: v_pk_min_u16 v5, v1, flat_scratch_lo ; encoding: [0x05,0x00,0x8d,0xd3,0x01,0xcd,0x00,0x18] +0x05,0x00,0x8d,0xd3,0x01,0xcd,0x00,0x18 + +# CHECK: v_pk_min_u16 v5, v1, flat_scratch_hi ; encoding: [0x05,0x00,0x8d,0xd3,0x01,0xcf,0x00,0x18] +0x05,0x00,0x8d,0xd3,0x01,0xcf,0x00,0x18 + +# CHECK: v_pk_min_u16 v5, v1, vcc_lo ; encoding: [0x05,0x00,0x8d,0xd3,0x01,0xd5,0x00,0x18] +0x05,0x00,0x8d,0xd3,0x01,0xd5,0x00,0x18 + +# CHECK: v_pk_min_u16 v5, v1, vcc_hi ; encoding: [0x05,0x00,0x8d,0xd3,0x01,0xd7,0x00,0x18] +0x05,0x00,0x8d,0xd3,0x01,0xd7,0x00,0x18 + +# CHECK: v_pk_min_u16 v5, v1, m0 ; encoding: [0x05,0x00,0x8d,0xd3,0x01,0xf9,0x00,0x18] +0x05,0x00,0x8d,0xd3,0x01,0xf9,0x00,0x18 + +# CHECK: v_pk_min_u16 v5, v1, exec_lo ; encoding: [0x05,0x00,0x8d,0xd3,0x01,0xfd,0x00,0x18] +0x05,0x00,0x8d,0xd3,0x01,0xfd,0x00,0x18 + +# CHECK: v_pk_min_u16 v5, v1, exec_hi ; encoding: [0x05,0x00,0x8d,0xd3,0x01,0xff,0x00,0x18] +0x05,0x00,0x8d,0xd3,0x01,0xff,0x00,0x18 + +# CHECK: v_pk_min_u16 v5, v1, 0 ; encoding: [0x05,0x00,0x8d,0xd3,0x01,0x01,0x01,0x18] +0x05,0x00,0x8d,0xd3,0x01,0x01,0x01,0x18 + +# CHECK: v_pk_min_u16 v5, v1, -1 ; encoding: [0x05,0x00,0x8d,0xd3,0x01,0x83,0x01,0x18] +0x05,0x00,0x8d,0xd3,0x01,0x83,0x01,0x18 + +# CHECK: v_pk_min_u16 v5, v1, 0.5 ; encoding: [0x05,0x00,0x8d,0xd3,0x01,0xe1,0x01,0x18] +0x05,0x00,0x8d,0xd3,0x01,0xe1,0x01,0x18 + +# CHECK: v_pk_min_u16 v5, v1, -4.0 ; encoding: [0x05,0x00,0x8d,0xd3,0x01,0xef,0x01,0x18] +0x05,0x00,0x8d,0xd3,0x01,0xef,0x01,0x18 + +# CHECK: v_pk_min_u16 v5, v1, v2 op_sel:[1,0] ; encoding: [0x05,0x08,0x8d,0xd3,0x01,0x05,0x02,0x18] +0x05,0x08,0x8d,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_min_u16 v5, v1, v2 op_sel:[0,1] ; encoding: [0x05,0x10,0x8d,0xd3,0x01,0x05,0x02,0x18] +0x05,0x10,0x8d,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_min_u16 v5, v1, v2 op_sel:[1,1] ; encoding: [0x05,0x18,0x8d,0xd3,0x01,0x05,0x02,0x18] +0x05,0x18,0x8d,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_min_u16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x00,0x8d,0xd3,0x01,0x05,0x02,0x00] +0x05,0x00,0x8d,0xd3,0x01,0x05,0x02,0x00 + +# CHECK: v_pk_min_u16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x00,0x8d,0xd3,0x01,0x05,0x02,0x08] +0x05,0x00,0x8d,0xd3,0x01,0x05,0x02,0x08 + +# CHECK: v_pk_min_u16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x00,0x8d,0xd3,0x01,0x05,0x02,0x10] +0x05,0x00,0x8d,0xd3,0x01,0x05,0x02,0x10 + +# CHECK: v_pk_min_u16 v5, v1, v2 clamp ; encoding: [0x05,0x80,0x8d,0xd3,0x01,0x05,0x02,0x18] +0x05,0x80,0x8d,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_mul_f16 v5, v1, v2 ; encoding: [0x05,0x00,0x90,0xd3,0x01,0x05,0x02,0x18] +0x05,0x00,0x90,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_mul_f16 v255, v1, v2 ; encoding: [0xff,0x00,0x90,0xd3,0x01,0x05,0x02,0x18] +0xff,0x00,0x90,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_mul_f16 v5, v255, v2 ; encoding: [0x05,0x00,0x90,0xd3,0xff,0x05,0x02,0x18] +0x05,0x00,0x90,0xd3,0xff,0x05,0x02,0x18 + +# CHECK: v_pk_mul_f16 v5, s1, v2 ; encoding: [0x05,0x00,0x90,0xd3,0x01,0x04,0x02,0x18] +0x05,0x00,0x90,0xd3,0x01,0x04,0x02,0x18 + +# CHECK: v_pk_mul_f16 v5, s101, v2 ; encoding: [0x05,0x00,0x90,0xd3,0x65,0x04,0x02,0x18] +0x05,0x00,0x90,0xd3,0x65,0x04,0x02,0x18 + +# CHECK: v_pk_mul_f16 v5, flat_scratch_lo, v2 ; encoding: [0x05,0x00,0x90,0xd3,0x66,0x04,0x02,0x18] +0x05,0x00,0x90,0xd3,0x66,0x04,0x02,0x18 + +# CHECK: v_pk_mul_f16 v5, flat_scratch_hi, v2 ; encoding: [0x05,0x00,0x90,0xd3,0x67,0x04,0x02,0x18] +0x05,0x00,0x90,0xd3,0x67,0x04,0x02,0x18 + +# CHECK: v_pk_mul_f16 v5, vcc_lo, v2 ; encoding: [0x05,0x00,0x90,0xd3,0x6a,0x04,0x02,0x18] +0x05,0x00,0x90,0xd3,0x6a,0x04,0x02,0x18 + +# CHECK: v_pk_mul_f16 v5, vcc_hi, v2 ; encoding: [0x05,0x00,0x90,0xd3,0x6b,0x04,0x02,0x18] +0x05,0x00,0x90,0xd3,0x6b,0x04,0x02,0x18 + +# CHECK: v_pk_mul_f16 v5, exec_lo, v2 ; encoding: [0x05,0x00,0x90,0xd3,0x7e,0x04,0x02,0x18] +0x05,0x00,0x90,0xd3,0x7e,0x04,0x02,0x18 + +# CHECK: v_pk_mul_f16 v5, exec_hi, v2 ; encoding: [0x05,0x00,0x90,0xd3,0x7f,0x04,0x02,0x18] +0x05,0x00,0x90,0xd3,0x7f,0x04,0x02,0x18 + +# CHECK: v_pk_mul_f16 v5, -1, v2 ; encoding: [0x05,0x00,0x90,0xd3,0xc1,0x04,0x02,0x18] +0x05,0x00,0x90,0xd3,0xc1,0x04,0x02,0x18 + +# CHECK: v_pk_mul_f16 v5, -4.0, v2 ; encoding: [0x05,0x00,0x90,0xd3,0xf7,0x04,0x02,0x18] +0x05,0x00,0x90,0xd3,0xf7,0x04,0x02,0x18 + +# CHECK: v_pk_mul_f16 v5, v1, v255 ; encoding: [0x05,0x00,0x90,0xd3,0x01,0xff,0x03,0x18] +0x05,0x00,0x90,0xd3,0x01,0xff,0x03,0x18 + +# CHECK: v_pk_mul_f16 v5, v1, s2 ; encoding: [0x05,0x00,0x90,0xd3,0x01,0x05,0x00,0x18] +0x05,0x00,0x90,0xd3,0x01,0x05,0x00,0x18 + +# CHECK: v_pk_mul_f16 v5, v1, s101 ; encoding: [0x05,0x00,0x90,0xd3,0x01,0xcb,0x00,0x18] +0x05,0x00,0x90,0xd3,0x01,0xcb,0x00,0x18 + +# CHECK: v_pk_mul_f16 v5, v1, flat_scratch_lo ; encoding: [0x05,0x00,0x90,0xd3,0x01,0xcd,0x00,0x18] +0x05,0x00,0x90,0xd3,0x01,0xcd,0x00,0x18 + +# CHECK: v_pk_mul_f16 v5, v1, flat_scratch_hi ; encoding: [0x05,0x00,0x90,0xd3,0x01,0xcf,0x00,0x18] +0x05,0x00,0x90,0xd3,0x01,0xcf,0x00,0x18 + +# CHECK: v_pk_mul_f16 v5, v1, vcc_lo ; encoding: [0x05,0x00,0x90,0xd3,0x01,0xd5,0x00,0x18] +0x05,0x00,0x90,0xd3,0x01,0xd5,0x00,0x18 + +# CHECK: v_pk_mul_f16 v5, v1, vcc_hi ; encoding: [0x05,0x00,0x90,0xd3,0x01,0xd7,0x00,0x18] +0x05,0x00,0x90,0xd3,0x01,0xd7,0x00,0x18 + +# CHECK: v_pk_mul_f16 v5, v1, exec_lo ; encoding: [0x05,0x00,0x90,0xd3,0x01,0xfd,0x00,0x18] +0x05,0x00,0x90,0xd3,0x01,0xfd,0x00,0x18 + +# CHECK: v_pk_mul_f16 v5, v1, exec_hi ; encoding: [0x05,0x00,0x90,0xd3,0x01,0xff,0x00,0x18] +0x05,0x00,0x90,0xd3,0x01,0xff,0x00,0x18 + +# CHECK: v_pk_mul_f16 v5, v1, -1 ; encoding: [0x05,0x00,0x90,0xd3,0x01,0x83,0x01,0x18] +0x05,0x00,0x90,0xd3,0x01,0x83,0x01,0x18 + +# CHECK: v_pk_mul_f16 v5, v1, -4.0 ; encoding: [0x05,0x00,0x90,0xd3,0x01,0xef,0x01,0x18] +0x05,0x00,0x90,0xd3,0x01,0xef,0x01,0x18 + +# CHECK: v_pk_mul_f16 v5, v1, v2 op_sel:[1,0] ; encoding: [0x05,0x08,0x90,0xd3,0x01,0x05,0x02,0x18] +0x05,0x08,0x90,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_mul_f16 v5, v1, v2 op_sel:[0,1] ; encoding: [0x05,0x10,0x90,0xd3,0x01,0x05,0x02,0x18] +0x05,0x10,0x90,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_mul_f16 v5, v1, v2 op_sel:[1,1] ; encoding: [0x05,0x18,0x90,0xd3,0x01,0x05,0x02,0x18] +0x05,0x18,0x90,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_mul_f16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x00,0x90,0xd3,0x01,0x05,0x02,0x00] +0x05,0x00,0x90,0xd3,0x01,0x05,0x02,0x00 + +# CHECK: v_pk_mul_f16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x00,0x90,0xd3,0x01,0x05,0x02,0x08] +0x05,0x00,0x90,0xd3,0x01,0x05,0x02,0x08 + +# CHECK: v_pk_mul_f16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x00,0x90,0xd3,0x01,0x05,0x02,0x10] +0x05,0x00,0x90,0xd3,0x01,0x05,0x02,0x10 + +# CHECK: v_pk_mul_f16 v5, v1, v2 neg_lo:[1,0] ; encoding: [0x05,0x00,0x90,0xd3,0x01,0x05,0x02,0x38] +0x05,0x00,0x90,0xd3,0x01,0x05,0x02,0x38 + +# CHECK: v_pk_mul_f16 v5, v1, v2 neg_lo:[0,1] ; encoding: [0x05,0x00,0x90,0xd3,0x01,0x05,0x02,0x58] +0x05,0x00,0x90,0xd3,0x01,0x05,0x02,0x58 + +# CHECK: v_pk_mul_f16 v5, v1, v2 neg_lo:[1,1] ; encoding: [0x05,0x00,0x90,0xd3,0x01,0x05,0x02,0x78] +0x05,0x00,0x90,0xd3,0x01,0x05,0x02,0x78 + +# CHECK: v_pk_mul_f16 v5, v1, v2 neg_hi:[1,0] ; encoding: [0x05,0x01,0x90,0xd3,0x01,0x05,0x02,0x18] +0x05,0x01,0x90,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_mul_f16 v5, v1, v2 neg_hi:[0,1] ; encoding: [0x05,0x02,0x90,0xd3,0x01,0x05,0x02,0x18] +0x05,0x02,0x90,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_mul_f16 v5, v1, v2 neg_hi:[1,1] ; encoding: [0x05,0x03,0x90,0xd3,0x01,0x05,0x02,0x18] +0x05,0x03,0x90,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, v1, v2 ; encoding: [0x05,0x00,0x81,0xd3,0x01,0x05,0x02,0x18] +0x05,0x00,0x81,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_mul_lo_u16 v255, v1, v2 ; encoding: [0xff,0x00,0x81,0xd3,0x01,0x05,0x02,0x18] +0xff,0x00,0x81,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, v255, v2 ; encoding: [0x05,0x00,0x81,0xd3,0xff,0x05,0x02,0x18] +0x05,0x00,0x81,0xd3,0xff,0x05,0x02,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, s1, v2 ; encoding: [0x05,0x00,0x81,0xd3,0x01,0x04,0x02,0x18] +0x05,0x00,0x81,0xd3,0x01,0x04,0x02,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, s101, v2 ; encoding: [0x05,0x00,0x81,0xd3,0x65,0x04,0x02,0x18] +0x05,0x00,0x81,0xd3,0x65,0x04,0x02,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, flat_scratch_lo, v2 ; encoding: [0x05,0x00,0x81,0xd3,0x66,0x04,0x02,0x18] +0x05,0x00,0x81,0xd3,0x66,0x04,0x02,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, flat_scratch_hi, v2 ; encoding: [0x05,0x00,0x81,0xd3,0x67,0x04,0x02,0x18] +0x05,0x00,0x81,0xd3,0x67,0x04,0x02,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, vcc_lo, v2 ; encoding: [0x05,0x00,0x81,0xd3,0x6a,0x04,0x02,0x18] +0x05,0x00,0x81,0xd3,0x6a,0x04,0x02,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, vcc_hi, v2 ; encoding: [0x05,0x00,0x81,0xd3,0x6b,0x04,0x02,0x18] +0x05,0x00,0x81,0xd3,0x6b,0x04,0x02,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, m0, v2 ; encoding: [0x05,0x00,0x81,0xd3,0x7c,0x04,0x02,0x18] +0x05,0x00,0x81,0xd3,0x7c,0x04,0x02,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, exec_lo, v2 ; encoding: [0x05,0x00,0x81,0xd3,0x7e,0x04,0x02,0x18] +0x05,0x00,0x81,0xd3,0x7e,0x04,0x02,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, exec_hi, v2 ; encoding: [0x05,0x00,0x81,0xd3,0x7f,0x04,0x02,0x18] +0x05,0x00,0x81,0xd3,0x7f,0x04,0x02,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, 0, v2 ; encoding: [0x05,0x00,0x81,0xd3,0x80,0x04,0x02,0x18] +0x05,0x00,0x81,0xd3,0x80,0x04,0x02,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, -1, v2 ; encoding: [0x05,0x00,0x81,0xd3,0xc1,0x04,0x02,0x18] +0x05,0x00,0x81,0xd3,0xc1,0x04,0x02,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, 0.5, v2 ; encoding: [0x05,0x00,0x81,0xd3,0xf0,0x04,0x02,0x18] +0x05,0x00,0x81,0xd3,0xf0,0x04,0x02,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, -4.0, v2 ; encoding: [0x05,0x00,0x81,0xd3,0xf7,0x04,0x02,0x18] +0x05,0x00,0x81,0xd3,0xf7,0x04,0x02,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, v1, v255 ; encoding: [0x05,0x00,0x81,0xd3,0x01,0xff,0x03,0x18] +0x05,0x00,0x81,0xd3,0x01,0xff,0x03,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, v1, s2 ; encoding: [0x05,0x00,0x81,0xd3,0x01,0x05,0x00,0x18] +0x05,0x00,0x81,0xd3,0x01,0x05,0x00,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, v1, s101 ; encoding: [0x05,0x00,0x81,0xd3,0x01,0xcb,0x00,0x18] +0x05,0x00,0x81,0xd3,0x01,0xcb,0x00,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, v1, flat_scratch_lo ; encoding: [0x05,0x00,0x81,0xd3,0x01,0xcd,0x00,0x18] +0x05,0x00,0x81,0xd3,0x01,0xcd,0x00,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, v1, flat_scratch_hi ; encoding: [0x05,0x00,0x81,0xd3,0x01,0xcf,0x00,0x18] +0x05,0x00,0x81,0xd3,0x01,0xcf,0x00,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, v1, vcc_lo ; encoding: [0x05,0x00,0x81,0xd3,0x01,0xd5,0x00,0x18] +0x05,0x00,0x81,0xd3,0x01,0xd5,0x00,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, v1, vcc_hi ; encoding: [0x05,0x00,0x81,0xd3,0x01,0xd7,0x00,0x18] +0x05,0x00,0x81,0xd3,0x01,0xd7,0x00,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, v1, m0 ; encoding: [0x05,0x00,0x81,0xd3,0x01,0xf9,0x00,0x18] +0x05,0x00,0x81,0xd3,0x01,0xf9,0x00,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, v1, exec_lo ; encoding: [0x05,0x00,0x81,0xd3,0x01,0xfd,0x00,0x18] +0x05,0x00,0x81,0xd3,0x01,0xfd,0x00,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, v1, exec_hi ; encoding: [0x05,0x00,0x81,0xd3,0x01,0xff,0x00,0x18] +0x05,0x00,0x81,0xd3,0x01,0xff,0x00,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, v1, 0 ; encoding: [0x05,0x00,0x81,0xd3,0x01,0x01,0x01,0x18] +0x05,0x00,0x81,0xd3,0x01,0x01,0x01,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, v1, -1 ; encoding: [0x05,0x00,0x81,0xd3,0x01,0x83,0x01,0x18] +0x05,0x00,0x81,0xd3,0x01,0x83,0x01,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, v1, 0.5 ; encoding: [0x05,0x00,0x81,0xd3,0x01,0xe1,0x01,0x18] +0x05,0x00,0x81,0xd3,0x01,0xe1,0x01,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, v1, -4.0 ; encoding: [0x05,0x00,0x81,0xd3,0x01,0xef,0x01,0x18] +0x05,0x00,0x81,0xd3,0x01,0xef,0x01,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, v1, v2 op_sel:[1,0] ; encoding: [0x05,0x08,0x81,0xd3,0x01,0x05,0x02,0x18] +0x05,0x08,0x81,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, v1, v2 op_sel:[0,1] ; encoding: [0x05,0x10,0x81,0xd3,0x01,0x05,0x02,0x18] +0x05,0x10,0x81,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, v1, v2 op_sel:[1,1] ; encoding: [0x05,0x18,0x81,0xd3,0x01,0x05,0x02,0x18] +0x05,0x18,0x81,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_mul_lo_u16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x00,0x81,0xd3,0x01,0x05,0x02,0x00] +0x05,0x00,0x81,0xd3,0x01,0x05,0x02,0x00 + +# CHECK: v_pk_mul_lo_u16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x00,0x81,0xd3,0x01,0x05,0x02,0x08] +0x05,0x00,0x81,0xd3,0x01,0x05,0x02,0x08 + +# CHECK: v_pk_mul_lo_u16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x00,0x81,0xd3,0x01,0x05,0x02,0x10] +0x05,0x00,0x81,0xd3,0x01,0x05,0x02,0x10 + +# CHECK: v_pk_mul_lo_u16 v5, v1, v2 clamp ; encoding: [0x05,0x80,0x81,0xd3,0x01,0x05,0x02,0x18] +0x05,0x80,0x81,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_sub_i16 v5, v1, v2 ; encoding: [0x05,0x00,0x83,0xd3,0x01,0x05,0x02,0x18] +0x05,0x00,0x83,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_sub_i16 v255, v1, v2 ; encoding: [0xff,0x00,0x83,0xd3,0x01,0x05,0x02,0x18] +0xff,0x00,0x83,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_sub_i16 v5, v255, v2 ; encoding: [0x05,0x00,0x83,0xd3,0xff,0x05,0x02,0x18] +0x05,0x00,0x83,0xd3,0xff,0x05,0x02,0x18 + +# CHECK: v_pk_sub_i16 v5, s1, v2 ; encoding: [0x05,0x00,0x83,0xd3,0x01,0x04,0x02,0x18] +0x05,0x00,0x83,0xd3,0x01,0x04,0x02,0x18 + +# CHECK: v_pk_sub_i16 v5, s101, v2 ; encoding: [0x05,0x00,0x83,0xd3,0x65,0x04,0x02,0x18] +0x05,0x00,0x83,0xd3,0x65,0x04,0x02,0x18 + +# CHECK: v_pk_sub_i16 v5, flat_scratch_lo, v2 ; encoding: [0x05,0x00,0x83,0xd3,0x66,0x04,0x02,0x18] +0x05,0x00,0x83,0xd3,0x66,0x04,0x02,0x18 + +# CHECK: v_pk_sub_i16 v5, flat_scratch_hi, v2 ; encoding: [0x05,0x00,0x83,0xd3,0x67,0x04,0x02,0x18] +0x05,0x00,0x83,0xd3,0x67,0x04,0x02,0x18 + +# CHECK: v_pk_sub_i16 v5, vcc_lo, v2 ; encoding: [0x05,0x00,0x83,0xd3,0x6a,0x04,0x02,0x18] +0x05,0x00,0x83,0xd3,0x6a,0x04,0x02,0x18 + +# CHECK: v_pk_sub_i16 v5, vcc_hi, v2 ; encoding: [0x05,0x00,0x83,0xd3,0x6b,0x04,0x02,0x18] +0x05,0x00,0x83,0xd3,0x6b,0x04,0x02,0x18 + +# CHECK: v_pk_sub_i16 v5, m0, v2 ; encoding: [0x05,0x00,0x83,0xd3,0x7c,0x04,0x02,0x18] +0x05,0x00,0x83,0xd3,0x7c,0x04,0x02,0x18 + +# CHECK: v_pk_sub_i16 v5, exec_lo, v2 ; encoding: [0x05,0x00,0x83,0xd3,0x7e,0x04,0x02,0x18] +0x05,0x00,0x83,0xd3,0x7e,0x04,0x02,0x18 + +# CHECK: v_pk_sub_i16 v5, exec_hi, v2 ; encoding: [0x05,0x00,0x83,0xd3,0x7f,0x04,0x02,0x18] +0x05,0x00,0x83,0xd3,0x7f,0x04,0x02,0x18 + +# CHECK: v_pk_sub_i16 v5, 0, v2 ; encoding: [0x05,0x00,0x83,0xd3,0x80,0x04,0x02,0x18] +0x05,0x00,0x83,0xd3,0x80,0x04,0x02,0x18 + +# CHECK: v_pk_sub_i16 v5, -1, v2 ; encoding: [0x05,0x00,0x83,0xd3,0xc1,0x04,0x02,0x18] +0x05,0x00,0x83,0xd3,0xc1,0x04,0x02,0x18 + +# CHECK: v_pk_sub_i16 v5, 0.5, v2 ; encoding: [0x05,0x00,0x83,0xd3,0xf0,0x04,0x02,0x18] +0x05,0x00,0x83,0xd3,0xf0,0x04,0x02,0x18 + +# CHECK: v_pk_sub_i16 v5, -4.0, v2 ; encoding: [0x05,0x00,0x83,0xd3,0xf7,0x04,0x02,0x18] +0x05,0x00,0x83,0xd3,0xf7,0x04,0x02,0x18 + +# CHECK: v_pk_sub_i16 v5, v1, v255 ; encoding: [0x05,0x00,0x83,0xd3,0x01,0xff,0x03,0x18] +0x05,0x00,0x83,0xd3,0x01,0xff,0x03,0x18 + +# CHECK: v_pk_sub_i16 v5, v1, s2 ; encoding: [0x05,0x00,0x83,0xd3,0x01,0x05,0x00,0x18] +0x05,0x00,0x83,0xd3,0x01,0x05,0x00,0x18 + +# CHECK: v_pk_sub_i16 v5, v1, s101 ; encoding: [0x05,0x00,0x83,0xd3,0x01,0xcb,0x00,0x18] +0x05,0x00,0x83,0xd3,0x01,0xcb,0x00,0x18 + +# CHECK: v_pk_sub_i16 v5, v1, flat_scratch_lo ; encoding: [0x05,0x00,0x83,0xd3,0x01,0xcd,0x00,0x18] +0x05,0x00,0x83,0xd3,0x01,0xcd,0x00,0x18 + +# CHECK: v_pk_sub_i16 v5, v1, flat_scratch_hi ; encoding: [0x05,0x00,0x83,0xd3,0x01,0xcf,0x00,0x18] +0x05,0x00,0x83,0xd3,0x01,0xcf,0x00,0x18 + +# CHECK: v_pk_sub_i16 v5, v1, vcc_lo ; encoding: [0x05,0x00,0x83,0xd3,0x01,0xd5,0x00,0x18] +0x05,0x00,0x83,0xd3,0x01,0xd5,0x00,0x18 + +# CHECK: v_pk_sub_i16 v5, v1, vcc_hi ; encoding: [0x05,0x00,0x83,0xd3,0x01,0xd7,0x00,0x18] +0x05,0x00,0x83,0xd3,0x01,0xd7,0x00,0x18 + +# CHECK: v_pk_sub_i16 v5, v1, m0 ; encoding: [0x05,0x00,0x83,0xd3,0x01,0xf9,0x00,0x18] +0x05,0x00,0x83,0xd3,0x01,0xf9,0x00,0x18 + +# CHECK: v_pk_sub_i16 v5, v1, exec_lo ; encoding: [0x05,0x00,0x83,0xd3,0x01,0xfd,0x00,0x18] +0x05,0x00,0x83,0xd3,0x01,0xfd,0x00,0x18 + +# CHECK: v_pk_sub_i16 v5, v1, exec_hi ; encoding: [0x05,0x00,0x83,0xd3,0x01,0xff,0x00,0x18] +0x05,0x00,0x83,0xd3,0x01,0xff,0x00,0x18 + +# CHECK: v_pk_sub_i16 v5, v1, 0 ; encoding: [0x05,0x00,0x83,0xd3,0x01,0x01,0x01,0x18] +0x05,0x00,0x83,0xd3,0x01,0x01,0x01,0x18 + +# CHECK: v_pk_sub_i16 v5, v1, -1 ; encoding: [0x05,0x00,0x83,0xd3,0x01,0x83,0x01,0x18] +0x05,0x00,0x83,0xd3,0x01,0x83,0x01,0x18 + +# CHECK: v_pk_sub_i16 v5, v1, 0.5 ; encoding: [0x05,0x00,0x83,0xd3,0x01,0xe1,0x01,0x18] +0x05,0x00,0x83,0xd3,0x01,0xe1,0x01,0x18 + +# CHECK: v_pk_sub_i16 v5, v1, -4.0 ; encoding: [0x05,0x00,0x83,0xd3,0x01,0xef,0x01,0x18] +0x05,0x00,0x83,0xd3,0x01,0xef,0x01,0x18 + +# CHECK: v_pk_sub_i16 v5, v1, v2 op_sel:[1,0] ; encoding: [0x05,0x08,0x83,0xd3,0x01,0x05,0x02,0x18] +0x05,0x08,0x83,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_sub_i16 v5, v1, v2 op_sel:[0,1] ; encoding: [0x05,0x10,0x83,0xd3,0x01,0x05,0x02,0x18] +0x05,0x10,0x83,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_sub_i16 v5, v1, v2 op_sel:[1,1] ; encoding: [0x05,0x18,0x83,0xd3,0x01,0x05,0x02,0x18] +0x05,0x18,0x83,0xd3,0x01,0x05,0x02,0x18 + +# CHECK: v_pk_sub_i16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x00,0x83,0xd3,0x01,0x05,0x02,0x00] +0x05,0x00,0x83,0xd3,0x01,0x05,0x02,0x00 + +# CHECK: v_pk_sub_i16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x00,0x83,0xd3,0x01,0x05,0x02,0x08] +0x05,0x00,0x83,0xd3,0x01,0x05,0x02,0x08 + +# CHECK: v_pk_sub_i16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x00,0x83,0xd3,0x01,0x05,0x02,0x10] +0x05,0x00,0x83,0xd3,0x01,0x05,0x02,0x10 + +# CHECK: v_pk_sub_i16 v5, v1, v2 clamp ; encoding: [0x05,0x80,0x83,0xd3,0x01,0x05,0x02,0x18] +0x05,0x80,0x83,0xd3,0x01,0x05,0x02,0x18