@instruction<EOL><INDENT>def PMAXUB(cpu, dest, src):<DEDENT>
dest_value = dest.read()<EOL>src_value = src.read()<EOL>result = <NUM_LIT:0><EOL>for pos in range(<NUM_LIT:0>, dest.size, <NUM_LIT:8>):<EOL><INDENT>itema = (dest_value >> pos) & <NUM_LIT><EOL>itemb = (src_value >> pos) & <NUM_LIT><EOL>result |= Operators.ITEBV(dest.size, itema > itemb, itema, itemb) << pos<EOL><DEDENT>dest.write(result)<EOL>
PMAXUB: returns maximum of packed unsigned byte integers in the dest operand

Performs a SIMD compare of the packed unsigned byte in the second source operand
and the first source operand and returns the maximum value for each pair of
integers to the destination operand.

Example :
$xmm1.v16_int8 = {..., 0xf2, 0xd1}
$xmm2.v16_int8 = {..., 0xd2, 0xf1}
# after pmaxub xmm1, xmm2, we get
$xmm1.v16_int8 = {..., 0xf2, 0xf1}