1# RUN: llvm-mc -triple=wasm32-unknown-unknown -filetype=obj %s | llvm-objdump --triple=wasm32-unknown-unknown -d -t -r - | FileCheck %s 2 3 .section .data,"",@ 4foo: 5 .int32 0 6 .size foo, 4 7sym_a: 8 .int32 1 9 .int32 2 10 .size sym_a, 8 11 12.set sym_b, sym_a + 4 13 14# CHECK-LABEL: SYMBOL TABLE: 15# CHECK-NEXT: 00000000 l O DATA foo 16# CHECK-NEXT: 00000004 l O DATA sym_a 17# CHECK-NEXT: 00000008 l O DATA sym_b 18# CHECK-NEXT: 00000001 l F CODE main 19 20 .text 21 .section .text,"",@ 22main: 23 .functype main () -> () 24 i32.const sym_a 25 i32.store sym_b 26 end_function 27 28# CHECK-LABEL: <main>: 29# CHECK-EMPTY: 30# CHECK-NEXT: 3: 41 88 80 80 80 00 i32.const 8 31# CHECK-NEXT: 00000004: R_WASM_MEMORY_ADDR_SLEB sym_a+0 32# CHECK-NEXT: 9: 36 02 8c 80 80 80 00 i32.store 12 33# CHECK-NEXT: 0000000b: R_WASM_MEMORY_ADDR_LEB sym_b+0 34# CHECK-NEXT: 10: 0b end 35