-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
[aarch64] Is a bug for selecting register? #121241
Comments
@llvm/issue-subscribers-backend-aarch64 Author: Austin (Zhenhang1213)
demo:
https://godbolt.org/z/E5zqec1xj
I think this is wrong, Instead of w8, x8 should be selected, like gcc. And I find this ir is right |
The difference is:
While LLVM produces:
In the end result is the exact same result just with slightly different instructions. |
ok, Do you mean that movk will also set the upper 32 bits in the remaining x register to zeros? and I make a new demo: https://godbolt.org/z/n1ceqccfj if it would set zeros, I think therre is no problem
|
GCC:
The exactly the same result. Just slightly different instructions. |
demo:
https://godbolt.org/z/E5zqec1xj
I think this is wrong, Instead of w8, x8 should be selected, like gcc. And I find this ir is right
The text was updated successfully, but these errors were encountered: