[llvm-commits] [llvm] r159642 - /llvm/trunk/test/CodeGen/SPARC/private.ll
NAKAMURA Takumi
geek4civic at gmail.com
Mon Jul 2 21:21:57 PDT 2012
Author: chapuni
Date: Mon Jul 2 23:21:57 2012
New Revision: 159642
URL: http://llvm.org/viewvc/llvm-project?rev=159642&view=rev
Log:
test/CodeGen/SPARC/private.ll: FileCheck-ize.
Modified:
llvm/trunk/test/CodeGen/SPARC/private.ll
Modified: llvm/trunk/test/CodeGen/SPARC/private.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SPARC/private.ll?rev=159642&r1=159641&r2=159642&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SPARC/private.ll (original)
+++ llvm/trunk/test/CodeGen/SPARC/private.ll Mon Jul 2 23:21:57 2012
@@ -1,6 +1,6 @@
; Test to make sure that the 'private' is used correctly.
;
-; RUN: llc < %s -march=sparc > %t
+; RUN: llc < %s -march=sparc | FileCheck %s
; RUN: grep .foo: %t
; RUN: grep call.*\.foo %t
; RUN: grep .baz: %t
@@ -9,6 +9,7 @@
define private void @foo() {
ret void
}
+; CHECK: [[FOO:\..*foo]]:
@baz = private global i32 4
@@ -17,3 +18,8 @@
%1 = load i32* @baz, align 4
ret i32 %1
}
+
+; CHECK: call [[FOO]]
+; CHECK: ld {{.+}}[[BAZ:\..*baz]]
+
+; CHECK: [[BAZ]]
More information about the llvm-commits
mailing list