You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The compiler generates return jump using RET instruction with the target in Prog.To. Currently it is not possible to write such instruction in assembly. On many architectures the assembler accepts it but misassembles it.
With (return jump from function with a frame)
TEXT f(SB),4,$8
CALL f1(SB)
RET f2(SB)
AMD64: reject with invalid instruction MOVQ f2+8(SP), BP
ARM: assemble to MOVW.P f2+12(R13), R15; ...
ARM64: reject with invalid instruction MOVD.P f2+16(RSP), R30
MIPS: assemble to MOVW f2(R29), R4; ...
PPC64: assemble to MOVD f2(R1), R31; ...
S390X: assemble to MOVD f2(R15), R14; ...
None of them are right.
I will send a CL.
The text was updated successfully, but these errors were encountered:
The compiler generates return jump using
RET
instruction with the target inProg.To
. Currently it is not possible to write such instruction in assembly. On many architectures the assembler accepts it but misassembles it.With (return jump from function with a frame)
AMD64: reject with invalid instruction
MOVQ f2+8(SP), BP
ARM: assemble to
MOVW.P f2+12(R13), R15; ...
ARM64: reject with invalid instruction
MOVD.P f2+16(RSP), R30
MIPS: assemble to
MOVW f2(R29), R4; ...
PPC64: assemble to
MOVD f2(R1), R31; ...
S390X: assemble to
MOVD f2(R15), R14; ...
None of them are right.
I will send a CL.
The text was updated successfully, but these errors were encountered: