1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 3
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
4 define dso_local void @test_cancel2(ptr %p1, ptr %p2) {
5 ; CHECK-LABEL: test_cancel2:
6 ; CHECK: # %bb.0: # %entry
7 ; CHECK-NEXT: movl (%rdi), %eax
8 ; CHECK-NEXT: shrl %eax
9 ; CHECK-NEXT: andl $524287, %eax # imm = 0x7FFFF
10 ; CHECK-NEXT: movl %eax, (%rsi)
11 ; CHECK-NEXT: movb $0, 4(%rsi)
14 %0 = load i40, ptr %p1, align 8
15 %shl414 = shl i40 %0, 19
16 %unsclear415 = and i40 %shl414, 549755813887
17 %shr416 = lshr i40 %unsclear415, 20
18 %unsclear417 = and i40 %shr416, 549755813887
19 store i40 %unsclear417, ptr %p2, align 8