Fix undefined behavior in AArch64
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 11 Apr 2013 20:13:52 +0000 (20:13 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 11 Apr 2013 20:13:52 +0000 (20:13 +0000)
commit938493999e943868354a680db1d76f6b834e40f8
treea13015a109f90489b5c4d6be19ebb380d4309728
parentb81cd63c4b7d9a352eab7ccf8d95962999d320a9
Fix undefined behavior in AArch64

A64Imms::isLogicalImmBits and A64Imms::isLogicalImm will attempt to
execute shifts that perform undefined behavior. Instead of attempting
to perform the 64-bit rotation, treat it as a no-op.

llvm-svn: 179317
llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.cpp