test: Prefer CHECK-LABEL to CHECK in branchweight tests
[oota-llvm.git] / test / Transforms / ScalarRepl / 2003-09-12-IncorrectPromote.ll
index c3f3b8b2221550f71c1fd61e94a2da49e71a80dd..3f28cb187f867a7ef91f3f284d8f022c4217965c 100644 (file)
@@ -1,12 +1,12 @@
 ; Scalar replacement was incorrectly promoting this alloca!!
 ;
-; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl | llvm-dis | \
-; RUN:   sed {s/;.*//g} | grep \[
+; RUN: opt < %s -scalarrepl -S | FileCheck %s
 
-sbyte *%test() {
-       %A = alloca [30 x sbyte]
-       %B = getelementptr [30 x sbyte]* %A, long 0, long 0
-       %C = getelementptr sbyte* %B, long 1
-       store sbyte 0, sbyte* %B
-       ret sbyte* %C
+define i8* @test() {
+       %A = alloca [30 x i8]           ; <[30 x i8]*> [#uses=1]
+       %B = getelementptr [30 x i8]* %A, i64 0, i64 0          ; <i8*> [#uses=2]
+       %C = getelementptr i8* %B, i64 1                ; <i8*> [#uses=1]
+       store i8 0, i8* %B
+       ret i8* %C
 }
+; CHECK: alloca [