summaryrefslogtreecommitdiff
path: root/test/CodeGen/Mips/weak.ll
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanak@gmail.com>2011-05-25 23:30:30 +0000
committerAkira Hatanaka <ahatanak@gmail.com>2011-05-25 23:30:30 +0000
commit37d22d92dfd03ddad9a0d42c6cbceeea371b1d03 (patch)
treeffb10beb3e0d623af92d3e7530b3b81722507253 /test/CodeGen/Mips/weak.ll
parenta831a9b972f1b4fa4f3457acf303abbfc71c1ede (diff)
downloadllvm-37d22d92dfd03ddad9a0d42c6cbceeea371b1d03.tar.gz
llvm-37d22d92dfd03ddad9a0d42c6cbceeea371b1d03.tar.bz2
llvm-37d22d92dfd03ddad9a0d42c6cbceeea371b1d03.tar.xz
Define WeakRefDirective.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132098 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips/weak.ll')
-rw-r--r--test/CodeGen/Mips/weak.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/weak.ll b/test/CodeGen/Mips/weak.ll
new file mode 100644
index 0000000000..09dd2a4ebb
--- /dev/null
+++ b/test/CodeGen/Mips/weak.ll
@@ -0,0 +1,12 @@
+; RUN: llc -march=mips < %s | FileCheck %s
+
+@t = common global i32 (...)* null, align 4
+
+define void @f() nounwind {
+entry:
+ store i32 (...)* @test_weak, i32 (...)** @t, align 4
+ ret void
+}
+
+; CHECK: .weak test_weak
+declare extern_weak i32 @test_weak(...)