2018-01-16 05:22:46 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
2017-08-02 08:28:10 +08:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-- | FileCheck %s
|
2011-06-10 06:14:44 +08:00
|
|
|
|
|
|
|
define i64 @test(i64 %A) {
|
2018-01-16 05:22:46 +08:00
|
|
|
; CHECK-LABEL: test:
|
|
|
|
; CHECK: # %bb.0:
|
|
|
|
; CHECK-NEXT: movq %rdi, %rax
|
2018-09-20 02:59:08 +08:00
|
|
|
; CHECK-NEXT: shrq $54, %rax
|
|
|
|
; CHECK-NEXT: andl $-4, %eax
|
2018-01-16 05:22:46 +08:00
|
|
|
; CHECK-NEXT: retq
|
2011-06-10 06:14:44 +08:00
|
|
|
%B = lshr i64 %A, 56
|
|
|
|
%C = shl i64 %B, 2
|
|
|
|
ret i64 %C
|
|
|
|
}
|