You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider the code below.
unsigned int foo(unsigned long long x)
{
unsigned int tmp = x & 0x1fffffff;
return tmp;
}
sparse emits:
and.64 %r2 <- %arg1, $0x1fffffff
ret.32 %r2
%r2 seems to be interpreted as both 64 and 32 bits. Disable
the optimization in simplify_cast() to avoid the confusion.
Signed-off-by: Xi Wang <xi.wang@gmail.com>
0 commit comments