1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc < %s -mtriple=x86_64-- | FileCheck %s
3
4define i64 @test(i64 %A) {
5; CHECK-LABEL: test:
6; CHECK:       # %bb.0:
7; CHECK-NEXT:    movq %rdi, %rax
8; CHECK-NEXT:    shrq $54, %rax
9; CHECK-NEXT:    andl $-4, %eax
10; CHECK-NEXT:    retq
11    %B = lshr i64 %A, 56
12    %C = shl i64 %B, 2
13    ret i64 %C
14}
15