diff options
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/CodeGen/AArch64/fast-isel-shift.ll | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AArch64/fast-isel-shift.ll b/llvm/test/CodeGen/AArch64/fast-isel-shift.ll index fd3ee27a4b6..bd32077b64a 100644 --- a/llvm/test/CodeGen/AArch64/fast-isel-shift.ll +++ b/llvm/test/CodeGen/AArch64/fast-isel-shift.ll @@ -427,3 +427,27 @@ define i32 @ashr_zero(i32 %a) { ret i32 %1 } +; CHECK-LABEL: shl_zext_zero +; CHECK: ubfx x0, x0, #0, #32 +define i64 @shl_zext_zero(i32 %a) { + %1 = zext i32 %a to i64 + %2 = shl i64 %1, 0 + ret i64 %2 +} + +; CHECK-LABEL: lshr_zext_zero +; CHECK: ubfx x0, x0, #0, #32 +define i64 @lshr_zext_zero(i32 %a) { + %1 = zext i32 %a to i64 + %2 = lshr i64 %1, 0 + ret i64 %2 +} + +; CHECK-LABEL: ashr_zext_zero +; CHECK: ubfx x0, x0, #0, #32 +define i64 @ashr_zext_zero(i32 %a) { + %1 = zext i32 %a to i64 + %2 = ashr i64 %1, 0 + ret i64 %2 +} + |