-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[AArch64] Combine cmp + cset into eor #68465
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
Comments
|
@llvm/issue-subscribers-backend-aarch64
* test: https://gcc.godbolt.org/z/19aG7a1ja
```
static A staticA;
A* Test::aPtr = &staticA;
int main() {
main: // @main
main:
_ZL7staticA:
|
vfdff
added a commit
to vfdff/llvm-project
that referenced
this issue
Oct 9, 2023
This regression triggers after commit f400daa to fix infinite loop issue. In this case, we can known the shift count is 0, so it will not be triggered by the form of (iN (~X) u>> (N - 1)) in commit 21d3871, of which N indicates the data type bitwidth of X. Fixes llvm#68465
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note:
a) EOR rd, rn, op2 rd = rn ⊕ op2
b) CSET rd, cc if(cc) rd = 1; else rd = 0
The text was updated successfully, but these errors were encountered: