Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / WebAssembly / export-name.s
blob51e1bcf73dba2f5e85df405afb50300ac9104051
1 # RUN: llvm-mc -triple=wasm32-unknown-unknown < %s | FileCheck %s
2 # Check that it also comiled to object for format.
3 # RUN: llvm-mc -triple=wasm32-unknown-unknown -filetype=obj -o - < %s | obj2yaml | FileCheck -check-prefix=CHECK-OBJ %s
5 foo:
6 .globl foo
7 .functype foo () -> ()
8 .export_name foo, bar
9 end_function
11 # CHECK: .export_name foo, bar
13 # CHECK-OBJ: - Type: EXPORT
14 # CHECK-OBJ-NEXT: Exports:
15 # CHECK-OBJ-NEXT: - Name: bar
16 # CHECK-OBJ-NEXT: Kind: FUNCTION
17 # CHECK-OBJ-NEXT: Index: 0
19 # CHECK-OBJ: Name: linking
20 # CHECK-OBJ-NEXT: Version: 2
21 # CHECK-OBJ-NEXT: SymbolTable:
22 # CHECK-OBJ-NEXT: - Index: 0
23 # CHECK-OBJ-NEXT: Kind: FUNCTION
24 # CHECK-OBJ-NEXT: Name: foo
25 # CHECK-OBJ-NEXT: Flags: [ EXPORTED ]
26 # CHECK-OBJ-NEXT: Function: 0