I started playing around with assembly functions in go after looking at the assembly output
but I can't figure out how to use them correctly. This assembly implementation of the Less function:
// func lessMYASM(a,b int) bool
TEXT ·lessMYASM+0(SB),$0-24
MOVQ a+0(FP),BX
MOVQ b+8(FP),BP
MOVB $0,ret+16(FP)
CMPQ BX,BP
CMOVLLE $1,ret+16(FP)
RET ,
results in the following compilation error for me:
main.lessMYASM: doasm: notfound from=75 to=74 (20) CMOVLLE $1,ret+24(SP)
One thing that surprises me on top of this error is that I can't find any CMOVBxx instructions
and that the error message replaced 16 with 24 in the end.
What am I doing wrong here?
Best regards,
Florian