OSDN Git Service

ARM: address WOA unsigned division overflow crash
authorMartell Malone <martellmalone@gmail.com>
Thu, 26 Nov 2015 15:34:03 +0000 (15:34 +0000)
committerMartell Malone <martellmalone@gmail.com>
Thu, 26 Nov 2015 15:34:03 +0000 (15:34 +0000)
commit937e2d588c6509301ae609b3b8fd9c7c72d348de
tree1396e8401e99d55eb9667acee27b8e47d27986ff
parent0981e5a6cec9a4c79a06af37d025bb1faeeb7ff7
ARM: address WOA unsigned division overflow crash

Building on r253865 the crash is not limited to signed overflows.

Disable custom handling of unsigned 32-bit and 64-bit integer divide.
Add test cases for both 32-bit and 64-bit unsigned integer overflow.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254158 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/ARM/ARMISelLowering.h
test/CodeGen/ARM/Windows/division.ll
test/CodeGen/ARM/Windows/libcalls.ll
test/CodeGen/ARM/Windows/overflow.ll