• isharipo's avatar
    cmd/asm: restrict x86 shift ops to 8bit args · 5b043abe
    isharipo authored
    Change "yshl" and "yshb" immediate oclass from Yi32 to Yu8.
    This forbids:
    - negative shift counts
    - shift counts that not fit into 8bit
    
    Affects:
      RCL{B,L,Q,W}
      RCR{B,L,Q,W}
      ROL{B,L,Q,W}
      ROR{B,L,Q,W}
      SAL{B,L,Q,W}
      SAR{B,L,Q,W}
      SHL{B,L,Q,W}
      SHR{B,L,Q,W}
    
    Issue #21528 has some additional context about this change.
    
    Change-Id: I60884cb2b41a860820889fcd878ca6f564006b4a
    Reviewed-on: https://go-review.googlesource.com/62190
    Run-TryBot: Iskander Sharipov <iskander.sharipov@intel.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    5b043abe
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...