[InstCombine] Signed saturation patterns
[llvm-core.git] / test / CodeGen / WebAssembly / custom-sections.ll
blob78fe3c5458fdb972cfa685f9d96f144798be9160
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 }
13 !llvm.ident = !{!3}
14 !3 = !{!"clang version 123"}
16 !llvm.module.flags = !{!4}
17 !4 = !{i32 2, !"Debug Info Version", i32 3}
19 !llvm.dbg.cu = !{!5}
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,"",@
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"