[LLVMdev] tblgen and sign-extended constants too large for type

Chris Lattner clattner at apple.com
Tue Feb 12 14:32:35 PST 2008


On Feb 11, 2008, at 11:08 PM, Evan Cheng wrote:

> My feeling is tblgen shouldn't make assumptions about whether the  
> backend will treat the value as signed or unsigned (after all  
> MVT::ValueType does not convey sign information). Perhaps it's  
> cleaner to just check if it fits as unsigned? Chris?

I don't see why there is an issue.  Can't you just write i8 -1  ?

-Chris



More information about the llvm-dev mailing list