Fix undefined behavior (left shift of negative value) in Hexagon backend.
authorAlexey Samsonov <vonosmas@gmail.com>
Wed, 20 Aug 2014 21:22:03 +0000 (21:22 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Wed, 20 Aug 2014 21:22:03 +0000 (21:22 +0000)
commit145d28e73b6b70c1b4ef04ac8448646ead7a03b3
tree25ea9e9448ef6d0a71a582592f27e5a8acdcbc54
parenta046b4149c42282c440dc1194f0f828fe68fed4d
Fix undefined behavior (left shift of negative value) in Hexagon backend.

This bug is reported by UBSan.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216125 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Hexagon/HexagonInstrInfo.cpp
lib/Target/Hexagon/MCTargetDesc/HexagonMCInst.cpp