blob: 064b681c5cf3abef935b34b5f406487b445eb951 [file] [log] [blame]
Chris Lattner1610df22002-05-07 20:32:19 +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 -die | dis | grep phi
5; RUN: then exit 1
6; RUN: else exit 0
7; RUN: fi
8
9int "test"(bool %B)
10begin
11BB0:
12 br bool %B, label %BB1, label %BB3
13BB1:
14 br label %BB3
15BB3:
16 %Ret = phi int [1, %BB0], [1, %BB1]
17 ret int %Ret
18end