blob: 3c06693b100df0df8951e5c3ae37be905d894621 [file] [log] [blame]
Dan Gohman3c7d3082009-09-11 18:01:28 +00001; RUN: opt < %s -constprop -S | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002; RUN: grep {ret i32 -1}
Dan Gohman3c7d3082009-09-11 18:01:28 +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