[AArch64][SME2] Add multi-vector saturating doubling multiply high intrinsics
[llvm-project.git] / lld / test / wasm / command-exports-no-tors.s
blobe00712bed538dc8be057c7d3697bb03940cb39b5
1 # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s
2 # RUN: wasm-ld --no-entry %t.o -o %t.wasm
3 # RUN: obj2yaml %t.wasm | FileCheck %s
5 # Like command-exports.s, but with no ctors or dtors, so there should be no
6 # __wasm_call_ctors, __cxa_atexit, or wrappers.
8 .globl foo_i32
9 foo_i32:
10 .functype foo_i32 (i32, i32) -> (i32)
11 local.get 0
12 local.get 1
13 i32.add
14 end_function
16 .globl foo_f64
17 foo_f64:
18 .functype foo_f64 (f64, f64) -> (f64)
19 local.get 0
20 local.get 1
21 f64.add
22 end_function
24 .export_name foo_i32, foo_i32
25 .export_name foo_f64, foo_f64
27 # CHECK: - Type: EXPORT
28 # CHECK-NEXT: Exports:
29 # CHECK-NEXT: - Name: memory
30 # CHECK-NEXT: Kind: MEMORY
31 # CHECK-NEXT: Index: 0
32 # CHECK-NEXT: - Name: foo_i32
33 # CHECK-NEXT: Kind: FUNCTION
34 # CHECK-NEXT: Index: 0
35 # CHECK-NEXT: - Name: foo_f64
36 # CHECK-NEXT: Kind: FUNCTION
37 # CHECK-NEXT: Index: 1
39 # CHECK: - Type: CODE
41 # CHECK: - Index: 0
42 # CHECK-NEXT: Locals: []
43 # CHECK-NEXT: Body: 200020016A0B
44 # CHECK-NEXT: - Index: 1
45 # CHECK-NEXT: Locals: []
46 # CHECK-NEXT: Body: 20002001A00B
48 # CHECK: - Type: CUSTOM
49 # CHECK-NEXT: Name: name
50 # CHECK-NEXT: FunctionNames:
51 # CHECK-NEXT: - Index: 0
52 # CHECK-NEXT: Name: foo_i32
53 # CHECK-NEXT: - Index: 1
54 # CHECK-NEXT: Name: foo_f64