-
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/asm: optimize "AND $0xffff, Rx" with BFC #20860
Comments
add it to Go1.10? |
@benshi001 done. |
a &= 0xff00ffff is assembled to Actually a more efficient way is |
The above test program showed that BFC even cost more time than using constant pool. On my RP2 board, BFC cost 1.43ms while old way cost 1.315ms. |
Though a &= 0xff00ffff is compiled to by a SSA rule |
Currently "AND $0x7fff, R9" is assembled to
It can be optimized to a single instruction on ARMv7.
It can be done in Go1.10 and assigned to me.
The text was updated successfully, but these errors were encountered: