1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
2 ; RUN: opt < %s -passes=newgvn
5 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
6 target triple = "x86_64-unknown-linux-gnu"
8 define i32 @main(i32 %argc, ptr nocapture %argv) personality ptr @__gxx_personality_v0 {
10 %0 = getelementptr inbounds i8, ptr undef, i64 5 ; <ptr> [#uses=1]
11 store i32 undef, ptr %0, align 1
12 br i1 undef, label %k121.i.i, label %l117.i.i
14 l117.i.i: ; preds = %entry
15 invoke fastcc void @foo()
16 to label %.noexc5 unwind label %landing_pad
18 .noexc5: ; preds = %l117.i.i
21 k121.i.i: ; preds = %entry
22 br i1 undef, label %l129.i.i, label %k133.i.i
24 l129.i.i: ; preds = %k121.i.i
25 invoke fastcc void @foo()
26 to label %.noexc7 unwind label %landing_pad
28 .noexc7: ; preds = %l129.i.i
31 k133.i.i: ; preds = %k121.i.i
32 %1 = getelementptr i8, ptr undef, i64 5 ; <ptr> [#uses=1]
33 %2 = load i1, ptr %1 ; <i1> [#uses=1]
34 br i1 %2, label %k151.i.i, label %l147.i.i
36 l147.i.i: ; preds = %k133.i.i
37 invoke fastcc void @foo()
38 to label %.noexc10 unwind label %landing_pad
40 .noexc10: ; preds = %l147.i.i
43 k151.i.i: ; preds = %k133.i.i
46 landing_pad: ; preds = %l147.i.i, %l129.i.i, %l117.i.i
47 %exn = landingpad {ptr, i32}
49 switch i32 undef, label %fin [
54 fin: ; preds = %landing_pad
57 catch: ; preds = %landing_pad
60 catch1: ; preds = %landing_pad
64 declare fastcc void @foo()
66 declare i32 @__gxx_personality_v0(...)