Skip to content

Commit 9c486a4

Browse files
committed
lld/test/wasm/dylink-non-pie.s: check the contents of __wasm_apply_data_relocs
1 parent 972b540 commit 9c486a4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s
44
# RUN: wasm-ld -m wasm32 -Bdynamic %t.o %t.lib.so -o %t.wasm
55
# RUN: obj2yaml %t.wasm | FileCheck %s
6+
# RUN: llvm-objdump -d --no-show-raw-insn --no-leading-addr %t.wasm | FileCheck %s --check-prefixes DIS
67

78
.functype ret32 (f32) -> (i32)
89
.functype _start () -> ()
@@ -27,3 +28,10 @@ f_p:
2728
# CHECK: - Type: EXPORT
2829
# CHECK: - Name: __wasm_apply_data_relocs
2930
# CHECK-NEXT: Kind: FUNCTION
31+
32+
# DIS: <__wasm_apply_data_relocs>:
33+
# DIS-EMPTY:
34+
# DIS-NEXT: i32.const 1024
35+
# DIS-NEXT: global.get 0
36+
# DIS-NEXT: i32.store 0
37+
# DIS-NEXT: end

0 commit comments

Comments
 (0)