Correctly byte-swap APInts with bit-widths greater than 64.
[oota-llvm.git] / test / Transforms / ConstProp / 2006-12-01-bool-casts.ll
index 2474132d355c68d11df7c451c04d1a9d000f12a3..3c06693b100df0df8951e5c3ae37be905d894621 100644 (file)
@@ -1,15 +1,15 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | \
+; RUN: opt < %s -constprop -S | \
 ; RUN:    grep {ret i32 -1}
-; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | \
+; RUN: opt < %s -constprop -S | \
 ; RUN:    grep {ret i32 1}
 
-int %test1() {
-  %A = sext bool true to int
-  ret int %A
+define i32 @test1() {
+        %A = sext i1 true to i32                ; <i32> [#uses=1]
+        ret i32 %A
 }
 
-uint %test2() {
-  %A = zext bool true to uint
-  ret uint %A
+define i32 @test2() {
+        %A = zext i1 true to i32                ; <i32> [#uses=1]
+        ret i32 %A
 }