Skip to content

Commit fb9a6ab

Browse files
committed
dylink-non-pie.s: use the existing file
1 parent 06482d7 commit fb9a6ab

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

lld/test/wasm/Inputs/lib.s

Lines changed: 0 additions & 6 deletions
This file was deleted.

lld/test/wasm/dylink-non-pie.s

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.lib.o %p/Inputs/lib.s
1+
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.lib.o %p/Inputs/ret32.s
22
# RUN: wasm-ld -m wasm32 --experimental-pic -shared --no-entry %t.lib.o -o %t.lib.so
33
# RUN: llvm-mc -filetype=obj -mattr=+reference-types -triple=wasm32-unknown-unknown -o %t.o %s
44
# RUN: wasm-ld -m wasm32 --features=mutable-globals -Bdynamic --export-table --growable-table --export-memory --export=__stack_pointer --export=__heap_base --export=__heap_end --entry=_start %t.o %t.lib.so -o %t.wasm
@@ -7,23 +7,25 @@
77
.tabletype __indirect_function_table, funcref
88
.globaltype __memory_base, i32, immutable
99

10-
.functype f () -> ()
10+
.functype ret32 (f32) -> (i32)
1111
.functype _start () -> ()
1212
.globl _start
1313
.type _start,@function
1414
_start:
1515
.functype _start () -> ()
16+
f32.const 0.0
1617
global.get __memory_base
1718
i32.const f_p@MBREL
1819
i32.add
1920
i32.load 0
20-
call_indirect __indirect_function_table, () -> ()
21+
call_indirect __indirect_function_table, (f32) -> (i32)
22+
drop
2123
end_function
2224

2325
.section .data.f_p,"",@
2426
.globl f_p
2527
f_p:
26-
.int32 f
28+
.int32 ret32
2729
.size f_p, 4
2830

2931
# CHECK: Sections:

0 commit comments

Comments
 (0)