llvm.org GIT mirror llvm / 28dd6dc
[BDCE] Fix typo in test; NFC shl by 32 is undefined. This was intended to be a shl by 31 as part of a rotate sequence. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350265 91177308-0d34-0410-b5e6-96231b3b80d8 Nikita Popov 8 months ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
6161 define i32 @pr39771_expanded_fshr_multi_use(i32 %a) {
6262 ; CHECK-LABEL: @pr39771_expanded_fshr_multi_use(
6363 ; CHECK-NEXT: [[TMP:%.*]] = lshr i32 [[A:%.*]], 1
64 ; CHECK-NEXT: [[TMP2:%.*]] = shl i32 [[A]], 32
64 ; CHECK-NEXT: [[TMP2:%.*]] = shl i32 [[A]], 31
6565 ; CHECK-NEXT: [[B:%.*]] = or i32 [[TMP]], [[TMP2]]
6666 ; CHECK-NEXT: [[C:%.*]] = lshr i32 [[B]], 23
6767 ; CHECK-NEXT: [[D:%.*]] = xor i32 [[C]], [[B]]
6969 ; CHECK-NEXT: ret i32 [[E]]
7070 ;
7171 %tmp = lshr i32 %a, 1
72 %tmp2 = shl i32 %a, 32
72 %tmp2 = shl i32 %a, 31
7373 %b = or i32 %tmp, %tmp2
7474 %c = lshr i32 %b, 23
7575 %d = xor i32 %c, %b