[llvm-bugs] [Bug 40897] New: APInt::getBitsNeeded is wrong for INT_MIN
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Feb 27 21:19:27 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=40897
Bug ID: 40897
Summary: APInt::getBitsNeeded is wrong for INT_MIN
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: regehr at cs.utah.edu
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
APInt::getBitsNeeded("-128", 10) returns 9 but since only 8 bits are required
to represent -128, we should return that instead
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190228/4d9042cc/attachment.html>
More information about the llvm-bugs
mailing list