diff options
| author | Akira Hatanaka <ahatanaka@mips.com> | 2011-12-02 22:28:09 +0000 |
|---|---|---|
| committer | Akira Hatanaka <ahatanaka@mips.com> | 2011-12-02 22:28:09 +0000 |
| commit | bbc5555beefbf840eb7e960f1afdd084cc8d4274 (patch) | |
| tree | 4ba18e3751d49ce06abccd73f50e2c7cc3d0d205 /llvm/test/CodeGen/Mips/private.ll | |
| parent | 432add5b8f5974f722e967439088c8d238af9999 (diff) | |
| download | bcm5719-llvm-bbc5555beefbf840eb7e960f1afdd084cc8d4274.tar.gz bcm5719-llvm-bbc5555beefbf840eb7e960f1afdd084cc8d4274.zip | |
Fix test cases to use FileCheck.
llvm-svn: 145716
Diffstat (limited to 'llvm/test/CodeGen/Mips/private.ll')
| -rw-r--r-- | llvm/test/CodeGen/Mips/private.ll | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/llvm/test/CodeGen/Mips/private.ll b/llvm/test/CodeGen/Mips/private.ll index 4cc48f098a9..d1a67fd9f4b 100644 --- a/llvm/test/CodeGen/Mips/private.ll +++ b/llvm/test/CodeGen/Mips/private.ll @@ -1,19 +1,20 @@ ; Test to make sure that the 'private' is used correctly. ; -; RUN: llc < %s -march=mips > %t -; RUN: grep \\\$foo: %t -; RUN: grep call.*\\\$foo %t -; RUN: grep \\\$baz: %t -; RUN: grep lw.*\\\$baz %t +; RUN: llc -march=mips < %s | FileCheck %s define private void @foo() { - ret void +; CHECK: foo: + ret void } @baz = private global i32 4 define i32 @bar() { - call void @foo() - %1 = load i32* @baz, align 4 - ret i32 %1 +; CHECK: bar: +; CHECK: call16($foo) +; CHECK: lw $[[R0:[0-9]+]], %got($baz)($ +; CHECK: lw ${{[0-9]+}}, %lo($baz)($[[R0]]) + call void @foo() + %1 = load i32* @baz, align 4 + ret i32 %1 } |

