blob: 241d25f25e2752b57f29b672bb4aee72c901461f [file] [log] [blame]
Chris Lattner4f538502002-05-03 20:12:31 +00001; This is a basic sanity check for constant propogation. The add instruction
2; should be eliminated.
3
4; RUN: if as < %s | opt -constprop | dis | grep add
5; RUN: then exit 1
6; RUN: else exit 0
7; RUN: fi
8
9int "test"(bool %B)
10begin
11 br bool %B, label %BB1, label %BB2
12BB1:
13 %Val = add int 0, 0
14 br label %BB3
15BB2:
16 br label %BB3
17BB3:
18 %Ret = phi int [%Val, %BB1], [1, %BB2]
19 ret int %Ret
20end