Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RETURN pseudo-instruction for non-constant values #2

Open
Maratyszcza opened this issue May 25, 2015 · 1 comment
Open

RETURN pseudo-instruction for non-constant values #2

Maratyszcza opened this issue May 25, 2015 · 1 comment

Comments

@Maratyszcza
Copy link
Owner

RETURN pseudo-instruction currently accepts only constant values.

  • RETURN should accept general-purpose registers for functions with integer or pointer return type. Lower to STORE.RESULT for Go and to MOV[ZX/SX](rax/eax, reg) for other ABIs
  • RETURN should accept xmm registers for functions with floating-point return type. Lower to STORE.RESULT for Go and to MOVSS/MOVSD(xmm0, xmmN) for other ABIs.
  • RETURN should accept mm/xmm/ymm registers for functions with vector return type. Lower to vector mov instructions for non-Go ABIs, prohibit in Go ABI.
@Maratyszcza
Copy link
Owner Author

Needs tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant