Sam Clegg | cfd44a2 | 2018-04-05 17:01:39 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -asm-verbose=false | FileCheck %s |
| 2 | |
| 3 | ; Test the mechanism for defining user custom sections. |
| 4 | |
| 5 | target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128" |
Sam Clegg | a590800 | 2018-05-10 17:49:11 +0000 | [diff] [blame^] | 6 | target triple = "wasm32-unknown-unknown" |
Sam Clegg | cfd44a2 | 2018-04-05 17:01:39 +0000 | [diff] [blame] | 7 | |
| 8 | !0 = !{ !"red", !"foo" } |
| 9 | !1 = !{ !"green", !"bar" } |
| 10 | !2 = !{ !"green", !"qux" } |
| 11 | !wasm.custom_sections = !{ !0, !1, !2 } |
| 12 | |
| 13 | ; CHECK: .section .custom_section.red,"",@ |
| 14 | ; CHECK-NEXT: .ascii "foo" |
| 15 | |
| 16 | ; CHECK: .section .custom_section.green,"",@ |
| 17 | ; CHECK-NEXT: .ascii "bar" |
| 18 | |
| 19 | ; CHECK: .section .custom_section.green,"",@ |
| 20 | ; CHECK-NEXT: .ascii "qux" |