Skip to content

Commit 972b540

Browse files
committed
lld/test/wasm/dylink-non-pie.s: simplify
1 parent 9e234c1 commit 972b540

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

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

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,16 @@
11
# 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
3-
# RUN: llvm-mc -filetype=obj -mattr=+reference-types -triple=wasm32-unknown-unknown -o %t.o %s
4-
# 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
3+
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s
4+
# RUN: wasm-ld -m wasm32 -Bdynamic %t.o %t.lib.so -o %t.wasm
55
# RUN: obj2yaml %t.wasm | FileCheck %s
66

7-
.tabletype __indirect_function_table, funcref
8-
.globaltype __memory_base, i32, immutable
9-
107
.functype ret32 (f32) -> (i32)
118
.functype _start () -> ()
129
.globl _start
1310
.type _start,@function
1411
_start:
1512
.functype _start () -> ()
16-
f32.const 0.0
17-
global.get __memory_base
18-
i32.const f_p@MBREL
19-
i32.add
20-
i32.load 0
21-
call_indirect __indirect_function_table, (f32) -> (i32)
13+
i32.const f_p
2214
drop
2315
end_function
2416

0 commit comments

Comments
 (0)