• Daniel Martí's avatar
    cmd/asm: VPERMQ's imm8 arg is an uint8 · 1178e51a
    Daniel Martí authored
    The imm8 argument consists of 4 2-bit indices, so it can take values up
    to $255. However, the assembler was treating it as Yi8, which reads
    "fits in int8". Add a Yu8 variant, to also keep backwards compatibility
    with negative values possible with Yi8.
    
    Fixes #24378.
    
    Change-Id: I24ddb19c219b54d039a6c1bcdb903717d1c7c3b8
    Reviewed-on: https://go-review.googlesource.com/100475
    Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarKeith Randall <khr@golang.org>
    1178e51a
asm6.go 141 KB