Go's 6a assembler has conditional jump instructions:
JCC
JCS
JCXZL
JEQ
JGE
JGT
JHI
JLE
JLS
JLT
JMI
JNE
JOC
JOS
JPC
JPL
JPS
But how do they map to x86 conditional jumps?
Go's 6a assembler has conditional jump instructions:
JCC
JCS
JCXZL
JEQ
JGE
JGT
JHI
JLE
JLS
JLT
JMI
JNE
JOC
JOS
JPC
JPL
JPS
But how do they map to x86 conditional jumps?
I'm answering this so I don't lose the information, and so other people don't have to go through the same sleuthing game as me. Looking at optab.c and the x86 jumps we can match up the instruction encodings to solve the puzzle.
JCC JAE
JCS JB
JCXZL JECXZ
JEQ JE,JZ
JGE JGE
JGT JG
JHI JA
JLE JLE
JLS JBE
JLT JL
JMI JS
JNE JNE, JNZ
JOC JNO
JOS JO
JPC JNP, JPO
JPL JNS
JPS JP, JPE