1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
2 ; RUN: opt < %s -passes=newgvn | llvm-dis
4 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
5 target triple = "i386-pc-linux-gnu"
6 %llvm.dbg.anchor.type = type { i32, i32 }
7 %struct.cset = type { ptr, i8, i8, i32, ptr }
8 %struct.lmat = type { ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr }
9 %struct.re_guts = type { ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, i32, [1 x i8] }
11 define ptr @lbackref(ptr %m, ptr %start, ptr %stop, i32 %startst, i32 %stopst, i32 %lev, i32 %rec) nounwind {
16 switch i32 0, label %bb62 [
17 i32 268435456, label %bb2
18 i32 805306368, label %bb9
19 i32 -1610612736, label %bb51
26 %0 = load i8, ptr %sp.1, align 1 ; <i8> [#uses=0]
30 %1 = load i8, ptr %sp.1, align 1 ; <i8> [#uses=0]
33 bb62: ; preds = %bb9, %bb2, %bb
36 bb63: ; preds = %bb84, %bb69, %bb62, %entry
37 %sp.1 = phi ptr [ null, %bb62 ], [ %sp.1.lcssa, %bb84 ], [ %start, %entry ], [ %sp.1.lcssa, %bb69 ] ; <ptr> [#uses=3]
38 br i1 false, label %bb, label %bb65
41 %sp.1.lcssa = phi ptr [ %sp.1, %bb63 ] ; <ptr> [#uses=4]
42 br i1 false, label %bb66, label %bb69
48 switch i32 0, label %bb108.loopexit2.loopexit.loopexit [
49 i32 1342177280, label %bb63
50 i32 1476395008, label %bb84
51 i32 1879048192, label %bb104
52 i32 2013265920, label %bb93
56 %2 = tail call ptr @lbackref(ptr %m, ptr %sp.1.lcssa, ptr %stop, i32 0, i32 %stopst, i32 0, i32 0) nounwind ; <ptr> [#uses=0]
62 bb104: ; preds = %bb69
63 %sp.1.lcssa.lcssa33 = phi ptr [ %sp.1.lcssa, %bb69 ] ; <ptr> [#uses=0]
66 bb108.loopexit2.loopexit.loopexit: ; preds = %bb69