blob: a32191c76f13db482c884974f33b81b83a32003c [file] [log] [blame]
Dan Gohman5bb7c7c2009-09-08 22:34:10 +00001; RUN: opt %s -constprop -S | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002; RUN: grep {ret i32 -1}
Dan Gohman5bb7c7c2009-09-08 22:34:10 +00003; RUN: opt %s -constprop -S | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004; RUN: grep {ret i32 1}
5
Tanya Lattner4c4d0b82008-03-01 09:15:35 +00006define i32 @test1() {
7 %A = sext i1 true to i32 ; <i32> [#uses=1]
8 ret i32 %A
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009}
10
Tanya Lattner4c4d0b82008-03-01 09:15:35 +000011define i32 @test2() {
12 %A = zext i1 true to i32 ; <i32> [#uses=1]
13 ret i32 %A
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014}
15