[llvm-dev] Unsigned int displaying as negative

Friedman, Eli via llvm-dev llvm-dev at lists.llvm.org
Wed Feb 15 10:56:20 PST 2017

On 2/15/2017 10:30 AM, Ryan Taylor via llvm-dev wrote:
> Where do in-tree archs handle the difference in this example? The 
> difference being printed either the signed or unsigned value.
> Thanks.
> On Wed, Feb 15, 2017 at 1:28 PM, Ryan Taylor <ryta1203 at gmail.com 
> <mailto:ryta1203 at gmail.com>> wrote:
>     Right, I understand that.
>     So why is 0x7FFF matching fine but not 0x8000 both fit in 16 bit?
>     Thanks.

It's hard to say why your pattern isn't matching without actually seeing 
the pattern.

See imm0_4095 in ARMInstrThumb2.td for an example of the sort of pattern 
you want.


Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170215/dc83e2b8/attachment-0001.html>

More information about the llvm-dev mailing list