1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s 3 4define void @test(ptr %p) nounwind { 5; CHECK-LABEL: test: 6; CHECK: # %bb.0: # %bb 7; CHECK-NEXT: movq (%rdi), %rax 8; CHECK-NEXT: andl $-2, %eax 9; CHECK-NEXT: cmpq $2, %rax 10; CHECK-NEXT: cmpl $2, %eax 11; CHECK-NEXT: retq 12bb: 13 %i = load i64, ptr %p, align 8, !range !0, !noundef !{} 14 %i1 = and i64 %i, 6 15 %i2 = icmp eq i64 %i1, 2 16 br i1 %i2, label %bb3, label %bb5 17 18bb3: ; preds = %bb 19 %i4 = icmp ne ptr undef, null 20 br label %bb5 21 22bb5: ; preds = %bb3, %bb 23 br label %bb6 24 25bb6: ; preds = %bb5 26 br i1 %i2, label %bb7, label %bb9 27 28bb7: ; preds = %bb6 29 %i8 = getelementptr inbounds i64, ptr undef, i64 5 30 br label %bb9 31 32bb9: ; preds = %bb7, %bb6 33 ret void 34} 35 36!0 = !{i64 0, i64 5} 37