1 ; RUN: llc < %s -asm-verbose=false | FileCheck %s
3 ; Test the mechanism for defining user custom sections.
5 target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
6 target triple = "wasm32-unknown-unknown"
8 !0 = !{ !"red", !"foo" }
9 !1 = !{ !"green", !"bar" }
10 !2 = !{ !"green", !"qux" }
11 !wasm.custom_sections = !{ !0, !1, !2 }
14 !3 = !{!"clang version 123"}
16 !llvm.module.flags = !{!4}
17 !4 = !{i32 2, !"Debug Info Version", i32 3}
20 !5 = distinct !DICompileUnit(language: DW_LANG_C99, file: !6)
21 !6 = !DIFile(filename: "test", directory: "testdir")
23 ; CHECK: .section .custom_section.red,"",@
24 ; CHECK-NEXT: .ascii "foo"
26 ; CHECK: .section .custom_section.green,"",@
27 ; CHECK-NEXT: .ascii "bar"
29 ; CHECK: .section .custom_section.green,"",@
30 ; CHECK-NEXT: .ascii "qux"
32 ; CHECK: .section .custom_section.producers,"",@
35 ; CHECK-NEXT: .ascii "language"
38 ; CHECK-NEXT: .ascii "C99"
40 ; CHECK-NEXT: .int8 12
41 ; CHECK-NEXT: .ascii "processed-by"
44 ; CHECK-NEXT: .ascii "clang"
46 ; CHECK-NEXT: .ascii "123"