1 ; RUN: opt -passes=simplifycfg -S < %s | FileCheck %s
3 target datalayout = "ni:1"
5 define void @test_01(ptr addrspace(1) align 8 %ptr) {
6 ; CHECK-LABEL: @test_01(
8 ; CHECK-NEXT: icmp eq ptr addrspace(1) %ptr, null
10 %cond1 = icmp eq ptr addrspace(1) %ptr, null
11 %cond2 = icmp eq ptr addrspace(1) %ptr, null
12 br i1 %cond1, label %true1, label %false1
15 br i1 %cond2, label %true2, label %false2
18 store i64 1, ptr addrspace(1) %ptr, align 8
22 store i64 2, ptr addrspace(1) %ptr, align 8
26 store i64 3, ptr addrspace(1) %ptr, align 8