xref: /llvm-project/llvm/test/CodeGen/WebAssembly/mutable-globals.ll (revision 0807bc7e07f0430bd5b048d5c08f09442aab3b7d)
1; RUN: llc < %s -mcpu=mvp -mattr=+mutable-globals | FileCheck %s
2
3; Test that mutable globals is properly emitted into the target features section
4
5target triple = "wasm32-unknown-unknown"
6
7define void @foo() {
8  ret void
9}
10
11; CHECK-LABEL: .custom_section.target_features
12; CHECK-NEXT: .int8 1
13; CHECK-NEXT: .int8 43
14; CHECK-NEXT: .int8 15
15; CHECK-NEXT: .ascii "mutable-globals"
16