Thomas Lively | 5f0c4c6 | 2019-03-29 22:00:18 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -mattr=+mutable-globals | FileCheck %s |
2 | |||||
3 | ; Test that mutable globals is properly emitted into the target features section | ||||
4 | |||||
5 | target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128" | ||||
6 | target triple = "wasm32-unknown-unknown" | ||||
7 | |||||
8 | define void @foo() { | ||||
9 | ret void | ||||
10 | } | ||||
11 | |||||
12 | ; CHECK-LABEL: .custom_section.target_features | ||||
13 | ; CHECK-NEXT: .int8 1 | ||||
14 | ; CHECK-NEXT: .int8 43 | ||||
15 | ; CHECK-NEXT: .int8 15 | ||||
16 | ; CHECK-NEXT: .ascii "mutable-globals" |