As Dan pointed out, movzbl, movsbl, and friends are nicer than their alias
[oota-llvm.git] / test / CodeGen / X86 / 2006-11-28-Memcpy.ll
index e0edd2d45aae43db075fac40bba7b1979a432ebd..8c1573f130ba11a308af1e33ddfa493452ec81b1 100644 (file)
@@ -1,14 +1,12 @@
 ; PR1022, PR1023
-; RUN: llvm-as < %s | llc -march=x86 | \
-; RUN:   grep 3721182122 | count 2
-; RUN: llvm-as < %s | llc -march=x86 | \
-; RUN:   grep -E {movl _?bytes2} | count 1
+; RUN: llc < %s -march=x86 | grep -- -573785174 | count 2
+; RUN: llc < %s -march=x86 | grep -E {movl     _?bytes2} | count 1
 
 @fmt = constant [4 x i8] c"%x\0A\00"            ; <[4 x i8]*> [#uses=2]
 @bytes = constant [4 x i8] c"\AA\BB\CC\DD"              ; <[4 x i8]*> [#uses=1]
 @bytes2 = global [4 x i8] c"\AA\BB\CC\DD"               ; <[4 x i8]*> [#uses=1]
 
-define i32 @test1() {
+define i32 @test1() nounwind {
         %y = alloca i32         ; <i32*> [#uses=2]
         %c = bitcast i32* %y to i8*             ; <i8*> [#uses=1]
         %z = getelementptr [4 x i8]* @bytes, i32 0, i32 0               ; <i8*> [#uses=1]
@@ -19,7 +17,7 @@ define i32 @test1() {
         ret i32 0
 }
 
-define void @test2() {
+define void @test2() nounwind {
         %y = alloca i32         ; <i32*> [#uses=2]
         %c = bitcast i32* %y to i8*             ; <i8*> [#uses=1]
         %z = getelementptr [4 x i8]* @bytes2, i32 0, i32 0              ; <i8*> [#uses=1]