diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2009-01-15 20:18:42 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2009-01-15 20:18:42 +0000 |
| commit | 6de96a1b5d77b13719760d0143ef48e8670b6e20 (patch) | |
| tree | ab6f61642a2e971790afdd47c806735afb828cdf /llvm/test/CodeGen/PowerPC/private.ll | |
| parent | 7ffcf93b2450ca373cdf3147744a029e9b00e095 (diff) | |
| download | bcm5719-llvm-6de96a1b5d77b13719760d0143ef48e8670b6e20.tar.gz bcm5719-llvm-6de96a1b5d77b13719760d0143ef48e8670b6e20.zip | |
Add the private linkage.
llvm-svn: 62279
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/private.ll')
| -rw-r--r-- | llvm/test/CodeGen/PowerPC/private.ll | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/private.ll b/llvm/test/CodeGen/PowerPC/private.ll new file mode 100644 index 00000000000..e25d2936b71 --- /dev/null +++ b/llvm/test/CodeGen/PowerPC/private.ll @@ -0,0 +1,21 @@ +; Test to make sure that the 'private' is used correctly. +; +; RUN: llvm-as < %s | llc -mtriple=powerpc-unknown-linux-gnu > %t +; RUN: grep .Lfoo: %t +; RUN: grep bl.*\.Lfoo %t +; RUN: grep .Lbaz: %t +; RUN: grep lis.*\.Lbaz %t + +declare void @foo() + +define private void @foo() { + ret void +} + +@baz = private global i32 4; + +define i32 @bar() { + call void @foo() + %1 = load i32* @baz, align 4 + ret i32 %1 +} |

