-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
cmd/5l: Suboptimal indirect function calls #4718
Labels
Comments
from my reading of cortex-a8 trm (http://infocenter.arm.com/help/topic/com.arm.doc.ddi0344k/ch05s02s01.html): Quote: The following instructions cause a return stack pop if predicted: BX r14 MOV pc, r14 LDM r13, {…pc} LDR pc, [r13] LDM r9, {..pc} (ThumbEE state only) LDR pc, [r9] (ThumbEE state only). The LDR instruction can use any of the addressing modes, as long as r13 is the base register. I think our use of "ldr pc, [sp], #offset" is included as it's using LDR pc, [r13} with post increment address mode. Status changed to WaitingForReply. |
This issue was updated by revision 35e1dea. This CL makes BL (Rx) to use BLX Rx instead of: MOV LR, PC MOV PC, Rx R=cshapiro, rsc CC=dave, gobot, golang-dev https://golang.org/cl/9669045 |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by Matthew.Horsnell:
The text was updated successfully, but these errors were encountered: