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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs