blob: e92c0f8f3a882c234a6b8712ddba7ee33d8b5b6e [file] [log] [blame]
Sam Cleggcfd44a22018-04-05 17:01:39 +00001; 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"
Sam Clegga5908002018-05-10 17:49:11 +00006target triple = "wasm32-unknown-unknown"
Sam Cleggcfd44a22018-04-05 17:01:39 +00007
8!0 = !{ !"red", !"foo" }
9!1 = !{ !"green", !"bar" }
10!2 = !{ !"green", !"qux" }
11!wasm.custom_sections = !{ !0, !1, !2 }
12
Thomas Livelycbda16e2019-01-17 02:29:55 +000013!llvm.ident = !{!3}
14!3 = !{!"clang version 123"}
15
Sam Cleggcfd44a22018-04-05 17:01:39 +000016; CHECK: .section .custom_section.red,"",@
17; CHECK-NEXT: .ascii "foo"
18
19; CHECK: .section .custom_section.green,"",@
20; CHECK-NEXT: .ascii "bar"
21
22; CHECK: .section .custom_section.green,"",@
23; CHECK-NEXT: .ascii "qux"
Thomas Livelycbda16e2019-01-17 02:29:55 +000024
25; CHECK: .section .custom_section.producers,"",@
26; CHECK-NEXT: .int8 1
27; CHECK-NEXT: .int8 12
28; CHECK-NEXT: .ascii "processed-by"
29; CHECK-NEXT: .int8 1
30; CHECK-NEXT: .int8 5
31; CHECK-NEXT: .ascii "clang"
32; CHECK-NEXT: .int8 3
33; CHECK-NEXT: .ascii "123"