1 ; RUN: llc < %s -asm-verbose=false | FileCheck %s
3 ; Test the mechanism for defining user custom sections.
5 target triple = "wasm32-unknown-unknown"
7 !0 = !{ !"red", !"foo" }
8 !1 = !{ !"green", !"bar" }
9 !2 = !{ !"green", !"qux" }
10 !wasm.custom_sections = !{ !0, !1, !2 }
13 !3 = !{!"clang version 123"}
15 !llvm.module.flags = !{!4}
16 !4 = !{i32 2, !"Debug Info Version", i32 3}
19 !5 = distinct !DICompileUnit(language: DW_LANG_C99, file: !6)
20 !6 = !DIFile(filename: "test", directory: "testdir")
22 ; CHECK: .section .custom_section.red,"",@
23 ; CHECK-NEXT: .ascii "foo"
25 ; CHECK: .section .custom_section.green,"",@
26 ; CHECK-NEXT: .ascii "bar"
28 ; CHECK: .section .custom_section.green,"",@
29 ; CHECK-NEXT: .ascii "qux"
31 ; CHECK: .section .custom_section.producers,"",@
34 ; CHECK-NEXT: .ascii "language"
37 ; CHECK-NEXT: .ascii "C99"
39 ; CHECK-NEXT: .int8 12
40 ; CHECK-NEXT: .ascii "processed-by"
43 ; CHECK-NEXT: .ascii "clang"
45 ; CHECK-NEXT: .ascii "123"