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
4 define void @test(ptr %p) nounwind {
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
13 %i = load i64, ptr %p, align 8, !range !0, !noundef !{}
15 %i2 = icmp eq i64 %i1, 2
16 br i1 %i2, label %bb3, label %bb5
19 %i4 = icmp ne ptr undef, null
22 bb5: ; preds = %bb3, %bb
26 br i1 %i2, label %bb7, label %bb9
29 %i8 = getelementptr inbounds i64, ptr undef, i64 5
32 bb9: ; preds = %bb7, %bb6