[llvm] r221403 - [Linker] Add some test coverage for llvm.ident merging
Sean Silva
chisophugis at gmail.com
Wed Nov 5 13:33:35 PST 2014
Author: silvas
Date: Wed Nov 5 15:33:34 2014
New Revision: 221403
URL: http://llvm.org/viewvc/llvm-project?rev=221403&view=rev
Log:
[Linker] Add some test coverage for llvm.ident merging
Added:
llvm/trunk/test/Linker/Inputs/ident.a.ll
llvm/trunk/test/Linker/Inputs/ident.b.ll
llvm/trunk/test/Linker/ident.ll
Added: llvm/trunk/test/Linker/Inputs/ident.a.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/Inputs/ident.a.ll?rev=221403&view=auto
==============================================================================
--- llvm/trunk/test/Linker/Inputs/ident.a.ll (added)
+++ llvm/trunk/test/Linker/Inputs/ident.a.ll Wed Nov 5 15:33:34 2014
@@ -0,0 +1,3 @@
+!llvm.ident = !{!0, !1}
+!0 = metadata !{metadata !"Compiler V1"}
+!1 = metadata !{metadata !"Compiler V2"}
Added: llvm/trunk/test/Linker/Inputs/ident.b.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/Inputs/ident.b.ll?rev=221403&view=auto
==============================================================================
--- llvm/trunk/test/Linker/Inputs/ident.b.ll (added)
+++ llvm/trunk/test/Linker/Inputs/ident.b.ll Wed Nov 5 15:33:34 2014
@@ -0,0 +1,2 @@
+!llvm.ident = !{!0}
+!0 = metadata !{metadata !"Compiler V3"}
Added: llvm/trunk/test/Linker/ident.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/ident.ll?rev=221403&view=auto
==============================================================================
--- llvm/trunk/test/Linker/ident.ll (added)
+++ llvm/trunk/test/Linker/ident.ll Wed Nov 5 15:33:34 2014
@@ -0,0 +1,9 @@
+; RUN: llvm-link %S/Inputs/ident.a.ll %S/Inputs/ident.b.ll -S | FileCheck %s
+
+; Verify that multiple input llvm.ident metadata are linked together.
+
+; CHECK-DAG: !llvm.ident = !{!0, !1, !2}
+; CHECK-DAG: "Compiler V1"
+; CHECK-DAG: "Compiler V2"
+; CHECK-DAG: "Compiler V3"
+
More information about the llvm-commits
mailing list