PeachPy
PeachPy copied to clipboard
RETURN pseudo-instruction for non-constant values
RETURN pseudo-instruction currently accepts only constant values.
-
RETURNshould accept general-purpose registers for functions with integer or pointer return type. Lower toSTORE.RESULTfor Go and toMOV[ZX/SX](rax/eax, reg)for other ABIs -
RETURNshould accept xmm registers for functions with floating-point return type. Lower toSTORE.RESULTfor Go and toMOVSS/MOVSD(xmm0, xmmN)for other ABIs. -
RETURNshould accept mm/xmm/ymm registers for functions with vector return type. Lower to vector mov instructions for non-Go ABIs, prohibit in Go ABI.
Needs tests