blob: f779d76af120862c0cb617b72546c03ec6f22b3a [file] [log] [blame]
Chris Lattnerf2c83db2004-11-14 06:11:41 +00001; RUN: llvm-as < %s | opt -ipconstprop -instcombine | llvm-dis | grep 'ret bool true'
Chris Lattner0240a372004-11-14 06:02:46 +00002implementation
3
4internal int %foo(bool %C) {
5 br bool %C, label %T, label %F
6T:
7 ret int 52
8F:
9 ret int 52
10}
11
12bool %caller(bool %C) {
13 %X = call int %foo(bool %C)
Reid Spencer3da59db2006-11-27 01:05:10 +000014 %Y = trunc int %X to bool
Chris Lattner0240a372004-11-14 06:02:46 +000015 ret bool %Y
16}