summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/WebAssembly
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2019-01-17 02:29:55 +0000
committerThomas Lively <tlively@google.com>2019-01-17 02:29:55 +0000
commitcbda16eb8ebf52e10a44bd6f15e2743d69e9632a (patch)
tree43a795712422a63a3f60e732ac9131ceaa0bfd32 /llvm/test/CodeGen/WebAssembly
parent2a0868ff48cbf9b3b57858c0f95b89607b69aac9 (diff)
downloadbcm5719-llvm-cbda16eb8ebf52e10a44bd6f15e2743d69e9632a.tar.gz
bcm5719-llvm-cbda16eb8ebf52e10a44bd6f15e2743d69e9632a.zip
[WebAssembly] Parse llvm.ident into producers section
llvm-svn: 351413
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly')
-rw-r--r--llvm/test/CodeGen/WebAssembly/custom-sections.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/custom-sections.ll b/llvm/test/CodeGen/WebAssembly/custom-sections.ll
index cf21b0af4fb..e92c0f8f3a8 100644
--- a/llvm/test/CodeGen/WebAssembly/custom-sections.ll
+++ b/llvm/test/CodeGen/WebAssembly/custom-sections.ll
@@ -10,6 +10,9 @@ target triple = "wasm32-unknown-unknown"
!2 = !{ !"green", !"qux" }
!wasm.custom_sections = !{ !0, !1, !2 }
+!llvm.ident = !{!3}
+!3 = !{!"clang version 123"}
+
; CHECK: .section .custom_section.red,"",@
; CHECK-NEXT: .ascii "foo"
@@ -18,3 +21,13 @@ target triple = "wasm32-unknown-unknown"
; CHECK: .section .custom_section.green,"",@
; CHECK-NEXT: .ascii "qux"
+
+; CHECK: .section .custom_section.producers,"",@
+; CHECK-NEXT: .int8 1
+; CHECK-NEXT: .int8 12
+; CHECK-NEXT: .ascii "processed-by"
+; CHECK-NEXT: .int8 1
+; CHECK-NEXT: .int8 5
+; CHECK-NEXT: .ascii "clang"
+; CHECK-NEXT: .int8 3
+; CHECK-NEXT: .ascii "123"
OpenPOWER on IntegriCloud