1 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
3 define dso_local void @test_cancel2(ptr %p1, ptr %p2) {
5 ; CHECK-NEXT: movl (%rdi), %eax
6 ; CHECK-NEXT: shrl %eax
7 ; CHECK-NEXT: andl $524287, %eax
8 ; CHECK-NEXT: movl %eax, (%rsi)
9 ; CHECK-NEXT: movb $0, 4(%rsi)
12 %0 = load i40, ptr %p1, align 8
13 %shl414 = shl i40 %0, 19
14 %unsclear415 = and i40 %shl414, 549755813887
15 %shr416 = lshr i40 %unsclear415, 20
16 %unsclear417 = and i40 %shr416, 549755813887
17 store i40 %unsclear417, ptr %p2, align 8