[LLVMbugs] [Bug 3074] ConstantInt::get takes an "isSigned" parameter?

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Nov 15 21:40:09 PST 2008


http://llvm.org/bugs/show_bug.cgi?id=3074


Chris Lattner <clattner at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




--- Comment #1 from Chris Lattner <clattner at apple.com>  2008-11-15 23:40:08 ---
I don't get it, why is this a problem?  Consider if you pass -1 as "unsigned"
to ConstantInt and try to make an i128.  In this case, you'll get 64-bits set. 
If you pass -1 as signed to constant int, you get 128 bits set.

The signedness flag is only useful for constantints > 64 bits (the slow case). 


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list