• Michael Munday's avatar
    cmd/compile: use numeric condition code masks on s390x · cf032380
    Michael Munday authored
    Prior to this CL conditional branches on s390x always used an
    extended mnemonic such as BNE, BLT and so on to represent branch
    instructions with different condition code masks. This CL adds
    support for numeric condition code masks to the s390x SSA backend
    so that we can encode the condition under which a Block's
    successor is chosen as a field in that Block rather than in its
    type.
    
    This change will be useful as we come to add support for combined
    compare-and-branch instructions. Rather than trying to add extended
    mnemonics for every possible combination of mask and compare-and-
    branch instruction we can instead use a single mnemonic for each
    instruction.
    
    Change-Id: Idb7458f187b50906877d683695c291dff5279553
    Reviewed-on: https://go-review.googlesource.com/c/go/+/197178Reviewed-by: default avatarKeith Randall <khr@golang.org>
    cf032380
main.go 14.5 KB