Left shift of negative integer is an undefined behavior, and
is reported by UBSan. It's ok for imm values to be negative, so we can
just replace left shifts with multiplications.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D5132
Fix left shifts of negative integers in AArch64 InstPrinter/Disassembler ClosedPublic Authored by samsonov on Aug 29 2014, 3:25 PM.
Details Summary Left shift of negative integer is an undefined behavior, and
Diff Detail Event Timelinet.p.northover edited edge metadata. Comment ActionsHi Alexey, Looks reasonable to me. Thanks for doing this! Tim. This revision is now accepted and ready to land.Sep 1 2014, 2:21 AM
Revision Contents
Diff 13117 lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp
lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp
|