Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / WebAssembly / import-module.s
blob5d28d5b9c0b92192095d576bcca7bc9afd99b4ca
1 # RUN: llvm-mc -triple=wasm32 < %s | FileCheck %s -check-prefix=CHECK-ASM
2 # RUN: llvm-mc -triple=wasm32 -filetype=obj -o - < %s | obj2yaml | FileCheck %s
4 .functype foo () -> ()
5 .functype plain () -> ()
7 test:
8 .functype test () -> ()
9 call foo
10 call plain
11 end_function
13 .import_module foo, bar
14 .import_name foo, qux
16 # CHECK-ASM: .import_module foo, bar
17 # CHECK-ASM: .import_name foo, qux
19 # CHECK: - Type: IMPORT
20 # CHECK-NEXT: Imports:
21 # CHECK: - Module: bar
22 # CHECK-NEXT: Field: qux
23 # CHECK-NEXT: Kind: FUNCTION
25 # CHECK: - Module: env
26 # CHECK-NEXT: Field: plain
27 # CHECK-NEXT: Kind: FUNCTION
29 # CHECK: - Type: CUSTOM
30 # CHECK: Name: foo
31 # CHECK-NEXT: Flags: [ UNDEFINED, EXPLICIT_NAME ]
33 # CHECK: Name: plain
34 # CHECK-NEXT: Flags: [ UNDEFINED ]