Re: problem with signedness of PSEUDO_VALs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 23/07/18 00:39, Luc Van Oostenryck wrote:
[snip]
> I had few time today to think about it but think there are only
> two possible solutions:
> 1) add the needed typing at instruction level
> 2) at some point (probably during linearization itself) decide
>    that for now shift counts will be interpreted as some fixed
>    type (for example signed or unsigned int, because larger types
>    are rarely used for shift counts).

Yeah, my initial thought was to just use an int; it should be
good enough for any reasonable value, after all. However, if you
want to provide behaviour similar to gcc, then I guess you need
to find some way to add the type of the shift argument to the
instruction (or the pseudo src2, I guess).

ATB,
Ramsay Jones

--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux