llvm.org GIT mirror llvm / b03eacd
Fixed a bug that causes codegen of noop like add r0, r0, #0. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35627 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 13 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
731731 // a sequence of ADDri instructions. First though, pull as much of the imm
732732 // into this ADDri as possible.
733733 unsigned RotAmt = ARM_AM::getSOImmValRotate(Offset);
734 unsigned ThisImmVal = Offset & ARM_AM::rotr32(0xFF, (32-RotAmt) & 31);
734 unsigned ThisImmVal = Offset & ARM_AM::rotr32(0xFF, RotAmt);
735735
736736 // We will handle these bits from offset, clear them.
737737 Offset &= ~ThisImmVal;