diff options
Diffstat (limited to 'llvm/test/Transforms/InstCombine/select-bitext.ll')
| -rw-r--r-- | llvm/test/Transforms/InstCombine/select-bitext.ll | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/test/Transforms/InstCombine/select-bitext.ll b/llvm/test/Transforms/InstCombine/select-bitext.ll index 55a58e30c62..b66a9eef4ab 100644 --- a/llvm/test/Transforms/InstCombine/select-bitext.ll +++ b/llvm/test/Transforms/InstCombine/select-bitext.ll @@ -112,9 +112,8 @@ define <2 x i64> @trunc_sel_larger_sext_vec(<2 x i32> %a, <2 x i1> %cmp) { define i32 @trunc_sel_smaller_sext(i64 %a, i1 %cmp) { ; CHECK-LABEL: @trunc_sel_smaller_sext( -; CHECK-NEXT: [[TRUNC:%.*]] = trunc i64 %a to i32 -; CHECK-NEXT: [[SEXT:%.*]] = shl i32 [[TRUNC]], 16 -; CHECK-NEXT: [[TMP1:%.*]] = ashr exact i32 [[SEXT]], 16 +; CHECK-NEXT: [[TRUNC:%.*]] = trunc i64 %a to i16 +; CHECK-NEXT: [[TMP1:%.*]] = sext i16 [[TRUNC]] to i32 ; CHECK-NEXT: [[EXT:%.*]] = select i1 %cmp, i32 [[TMP1]], i32 42 ; CHECK-NEXT: ret i32 [[EXT]] ; |

