blob: 1e0fc4840164b3c34b78de907d7d9c0b764c233b [file] [log] [blame]
Dan Gohman1b4c27772009-09-08 16:50:01 +00001; RUN: opt %s -sccp | llvm-dis | not grep select
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattnerba93e2d2008-03-19 04:14:49 +00003define i32 @test1(i1 %C) {
4 %X = select i1 %C, i32 0, i32 0 ; <i32> [#uses=1]
5 ret i32 %X
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006}
7
Tanya Lattnerba93e2d2008-03-19 04:14:49 +00008define i32 @test2(i1 %C) {
9 %X = select i1 %C, i32 0, i32 undef ; <i32> [#uses=1]
10 ret i32 %X
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011}
Tanya Lattnerba93e2d2008-03-19 04:14:49 +000012