zpu: managed to compile program that writes constant to global variable
[llvm/zpu.git] / test / CodeGen / X86 / private.ll
blobf52f8c7af8c161137c4f626eab1c0ad03f4fdbd3
1 ; Test to make sure that the 'private' is used correctly.
3 ; RUN: llc < %s -mtriple=x86_64-pc-linux | grep .Lfoo:
4 ; RUN: llc < %s -mtriple=x86_64-pc-linux | grep call.*\.Lfoo
5 ; RUN: llc < %s -mtriple=x86_64-pc-linux | grep .Lbaz:
6 ; RUN: llc < %s -mtriple=x86_64-pc-linux | grep movl.*\.Lbaz
8 declare void @foo()
10 define private void @foo() {
11         ret void
14 @baz = private global i32 4
16 define i32 @bar() {
17         call void @foo()
18         %1 = load i32* @baz, align 4
19         ret i32 %1