-
Notifications
You must be signed in to change notification settings - Fork 16.9k
Expand file tree
/
Copy pathstack-pointer-abi.s
More file actions
32 lines (27 loc) · 967 Bytes
/
stack-pointer-abi.s
File metadata and controls
32 lines (27 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# RUN: split-file %s %t
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t/use.o %t/use.s
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t/disallow.o %t/disallow.s
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t/start.o %t/start.s
# RUN: wasm-ld --libcall-thread-context -o %t/libcall.wasm %t/use.o %t/start.o
# RUN: obj2yaml %t/libcall.wasm | FileCheck %s --check-prefix=LIBCALL
# RUN: wasm-ld -o %t/global.wasm %t/disallow.o %t/start.o
# RUN: obj2yaml %t/global.wasm | FileCheck %s --check-prefix=GLOBAL
#--- start.s
.globl _start
_start:
.functype _start () -> ()
end_function
#--- disallow.s
.section .custom_section.target_features,"",@
.int8 1
.int8 45
.int8 22
.ascii "libcall-thread-context"
#--- use.s
.section .custom_section.target_features,"",@
.int8 1
.int8 43
.int8 22
.ascii "libcall-thread-context"
# LIBCALL: Name: __init_stack_pointer
# GLOBAL: Name: __stack_pointer