brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · fddfddb Raw
39 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.lib.o %p/Inputs/ret32.s2# RUN: wasm-ld -m wasm32 --experimental-pic -shared --no-entry %t.lib.o -o %t.lib.so3# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s4# RUN: wasm-ld -m wasm32 -Bdynamic %t.o %t.lib.so -o %t.wasm5# RUN: obj2yaml %t.wasm | FileCheck %s6# RUN: llvm-objdump -d --no-show-raw-insn --no-leading-addr %t.wasm | FileCheck %s --check-prefixes DIS7 8	.functype	ret32 (f32) -> (i32)9	.globl	_start10_start:11	.functype	_start () -> ()12	i32.const   f_p13	drop14	end_function15 16	.section	.data.f_p,"",@17f_p:18	.int32	ret3219	.size	f_p, 420 21# CHECK:      Sections:22# CHECK-NEXT:   - Type:            CUSTOM23# CHECK-NEXT:     Name:            dylink.024 25# non-pie executable doesn't import __memory_base26# CHECK:   - Type:            IMPORT27# CHECK-NOT: Field:           __memory_base28 29# CHECK:   - Type:            EXPORT30# CHECK:       - Name:            __wasm_apply_data_relocs31# CHECK-NEXT:         Kind:            FUNCTION32 33# DIS:    <__wasm_apply_data_relocs>:34# DIS-EMPTY:35# DIS-NEXT:    i32.const       6553636# DIS-NEXT:    global.get      037# DIS-NEXT:    i32.store       038# DIS-NEXT:    end39