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