test: Prefer CHECK-LABEL to CHECK in branchweight tests
[oota-llvm.git] / test / Transforms / GlobalOpt / globalsra-unknown-index.ll
index debfcb2413f26415276f3b9e51e3becf5bd7ff5d..cc655e9a2d1db29c74034ebd1b0f247e1cfd93d9 100644 (file)
@@ -1,7 +1,7 @@
-; RUN: opt %s -globalopt | llvm-dis > %t
-; RUN: grep {@Y = internal global \\\[3 x \[%\]struct.X\\\] zeroinitializer} %t
+; RUN: opt < %s -globalopt -S > %t
+; RUN: grep "@Y = internal unnamed_addr global \[3 x [%]struct.X\] zeroinitializer" %t
 ; RUN: grep load %t | count 6
-; RUN: grep {add i32 \[%\]a, \[%\]b} %t | count 3
+; RUN: grep "add i32 [%]a, [%]b" %t | count 3
 
 ; globalopt should not sra the global, because it can't see the index.