blob: 71db4211c5d228d211d02b806902cf4010e37cd7 [file] [log] [blame]
Dan Gohmanf2f6ce62009-09-11 18:01:28 +00001; RUN: opt < %s -constprop -S | \
Chandler Carruth4177e6f2012-07-02 12:47:22 +00002; RUN: grep "ret i32 -1"
Dan Gohmanf2f6ce62009-09-11 18:01:28 +00003; RUN: opt < %s -constprop -S | \
Chandler Carruth4177e6f2012-07-02 12:47:22 +00004; RUN: grep "ret i32 1"
Chris Lattner63edf032006-12-01 19:50:04 +00005
Tanya Lattnerec9a35a2008-03-01 09:15:35 +00006define i32 @test1() {
7 %A = sext i1 true to i32 ; <i32> [#uses=1]
8 ret i32 %A
Chris Lattner63edf032006-12-01 19:50:04 +00009}
10
Tanya Lattnerec9a35a2008-03-01 09:15:35 +000011define i32 @test2() {
12 %A = zext i1 true to i32 ; <i32> [#uses=1]
13 ret i32 %A
Chris Lattner63edf032006-12-01 19:50:04 +000014}
15