* simplify_cast() question
@ 2012-06-08 11:02 Xi Wang
0 siblings, 0 replies; only message in thread
From: Xi Wang @ 2012-06-08 11:02 UTC (permalink / raw)
To: linux-sparse
Hi,
Consider the code:
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. Is this the
intended behavior? This could bring some trouble when we add
->ctype to pseudo..
- xi
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-06-08 11:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-08 11:02 simplify_cast() question Xi Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).