File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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
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
2527f_p:
26- .int32 f
28+ .int32 ret32
2729 .size f_p, 4
2830
2931# CHECK: Sections:
You can’t perform that action at this time.
0 commit comments