2009-09-12 02:01:28 +08:00
|
|
|
; RUN: opt < %s -constprop -S | \
|
2007-04-15 07:04:54 +08:00
|
|
|
; RUN: grep {ret i32 -1}
|
2009-09-12 02:01:28 +08:00
|
|
|
; RUN: opt < %s -constprop -S | \
|
2007-04-15 07:04:54 +08:00
|
|
|
; RUN: grep {ret i32 1}
|
2006-12-02 03:50:04 +08:00
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
define i32 @test1() {
|
|
|
|
%A = sext i1 true to i32 ; <i32> [#uses=1]
|
|
|
|
ret i32 %A
|
2006-12-02 03:50:04 +08:00
|
|
|
}
|
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
define i32 @test2() {
|
|
|
|
%A = zext i1 true to i32 ; <i32> [#uses=1]
|
|
|
|
ret i32 %A
|
2006-12-02 03:50:04 +08:00
|
|
|
}
|
|
|
|
|