We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
define i32 @is_bit_clear(i32 %x) { %sh = lshr i32 %x, 10 %a = and i32 %sh, 1 %r = xor i32 %a, 1 ret i32 %r }
$ llc -mtriple=hexagon-- bitclear.ll -o - is_bit_clear: { r0 = and(r0,##1024) } { r0 = cmp.eq(r0,#0) jumpr r31 }
https://godbolt.org/z/Zht4_4
See also discussion here: https://reviews.llvm.org/D66687
The text was updated successfully, but these errors were encountered:
assigned to @kparzysz-quic
Sorry, something went wrong.
Fixed in https://reviews.llvm.org/rL370913.
kparzysz-quic
No branches or pull requests
Extended Description
define i32 @is_bit_clear(i32 %x) {
%sh = lshr i32 %x, 10
%a = and i32 %sh, 1
%r = xor i32 %a, 1
ret i32 %r
}
$ llc -mtriple=hexagon-- bitclear.ll -o -
is_bit_clear:
{
r0 = and(r0,##1024)
}
{
r0 = cmp.eq(r0,#0)
jumpr r31
}
https://godbolt.org/z/Zht4_4
See also discussion here:
https://reviews.llvm.org/D66687
The text was updated successfully, but these errors were encountered: