blob: ebf58ca72e71baaf2d182776c4dd01f378b1397f [file] [log] [blame]
Nick Lewycky838f36f2006-08-31 03:13:05 +00001; RUN: llvm-as < %s | 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)