1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test/tools/llvm-objdump/wasm/relocations.test

19 lines
601 B
Plaintext

; RUN: llc -mtriple=wasm32-unknown-unknown -filetype=obj %s -o - | llvm-objdump -r - | FileCheck %s --strict-whitespace --match-full-lines
@foo = external global i32, align 4
@bar = global i32* @foo, align 4
define void @make_call(void ()* nocapture %func) {
entry:
call void %func()
ret void
}
; CHECK:RELOCATION RECORDS FOR [CODE]:
; CHECK-NEXT:OFFSET TYPE VALUE
; CHECK-NEXT:00000006 R_WASM_TYPE_INDEX_LEB 1+0
; CHECK:RELOCATION RECORDS FOR [DATA]:
; CHECK-NEXT:OFFSET TYPE VALUE
; CHECK-NEXT:00000006 R_WASM_MEMORY_ADDR_I32 foo+0