blob: 3817e87cde94d4cfa414237230f49390ee14e1d3 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -predsimplify -disable-output
2
3; ModuleID = '<stdin>'
4target endian = little
5target pointersize = 32
6target triple = "i686-pc-linux-gnu"
7
8implementation ; Functions:
9
10void %f(int %x, int %y) {
11entry:
12 %tmp = seteq int %x, 10 ; <bool> [#uses=1]
13 %tmp.not = xor bool %tmp, true ; <bool> [#uses=1]
14 %tmp3 = seteq int %x, %y ; <bool> [#uses=1]
15 %bothcond = and bool %tmp.not, %tmp3 ; <bool> [#uses=1]
16 br bool %bothcond, label %cond_true4, label %return
17
18cond_true4: ; preds = %entry
19 switch int %y, label %return [
20 int 9, label %bb
21 int 10, label %bb6
22 ]
23
24bb: ; preds = %cond_true4
25 call void %g( int 9 )
26 ret void
27
28bb6: ; preds = %cond_true4
29 call void %g( int 10 )
30 ret void
31
32return: ; preds = %cond_true4, %entry
33 ret void
34}
35
36declare void %g(int)