• Lynn Boger's avatar
    cmd/asm: recognize CR1-CR7 on ppc64x branch instructions · 6da8bdd2
    Lynn Boger authored
    Some of the branch instructions (BEQ, BNE, BLT, etc.) accept
    all the valid CR values as operands, but the CR register value is
    not parsed and not put into the instruction, so that CR0 is always
    used regardless of what was specified on the instruction.  For example
    BEQ CR2,label becomes beq cr0,label.
    
    This adds the change to the PPC64 assembler to recognize the CR value
    and set the approppriate field in the instruction so the correct
    CR is used.  This also adds some general comments on the branch
    instruction BC and its operand values.
    
    Fixes #17408
    
    Change-Id: I8e956372a42846a4c09a7259e9172eaa29118e71
    Reviewed-on: https://go-review.googlesource.com/30930
    Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarDavid Chase <drchase@google.com>
    6da8bdd2
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...