Revert r188449 as it turns out we're just missing the instructions that need the...
[oota-llvm.git] / test / Transforms / ScalarRepl / 2003-09-12-IncorrectPromote.ll
index dbac15c3a5211fd046e37f4dca37a63aab47a8ae..3f28cb187f867a7ef91f3f284d8f022c4217965c 100644 (file)
@@ -1,7 +1,6 @@
 ; Scalar replacement was incorrectly promoting this alloca!!
 ;
-; RUN: llvm-as < %s | opt -scalarrepl | llvm-dis | \
-; RUN:   sed {s/;.*//g} | grep {\\\[}
+; RUN: opt < %s -scalarrepl -S | FileCheck %s
 
 define i8* @test() {
        %A = alloca [30 x i8]           ; <[30 x i8]*> [#uses=1]
@@ -10,4 +9,4 @@ define i8* @test() {
        store i8 0, i8* %B
        ret i8* %C
 }
-
+; CHECK: alloca [