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

cmd/internal/obj/arm: broken form of MOVW #20644

Closed
benshi001 opened this issue Jun 12, 2017 · 2 comments
Closed

cmd/internal/obj/arm: broken form of MOVW #20644

benshi001 opened this issue Jun 12, 2017 · 2 comments

Comments

@benshi001
Copy link
Member

According to ARM's manual,

MOVW R0>>28(R1), R2

The final address can be either R1+R0>>28 (bit 23 set to 1) or R1-R0>>28 (bit 23 set to 0).

But current ARM assembler only accept addition. And will complaint

MOVW -(R0>>28)(R1), R2

with

unexpected R0 evaluating expression
@cherrymui
Copy link
Member

MOVW.U R0>>28(R1), R2

@benshi001
Copy link
Member Author

It is my mistake.

@golang golang locked and limited conversation to collaborators Jun 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants