summaryrefslogtreecommitdiffstats
path: root/llvm/test
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
commitfa63d3096da9057f03645233057dcfeb0e03d2f0 (patch)
tree81f257098fd239a44ddff89ad08f231e0e61babe /llvm/test
parent865866e7fef0370158e09d6bfc8ff6bcfad8ac70 (diff)
downloadbcm5719-llvm-fa63d3096da9057f03645233057dcfeb0e03d2f0.tar.gz
bcm5719-llvm-fa63d3096da9057f03645233057dcfeb0e03d2f0.zip
Define WeakRefDirective.
llvm-svn: 132098
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/Mips/weak.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Mips/weak.ll b/llvm/test/CodeGen/Mips/weak.ll
new file mode 100644
index 00000000000..09dd2a4ebbf
--- /dev/null
+++ b/llvm/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(...)
OpenPOWER on IntegriCloud