Files
wasmtime/cranelift/filetests/filetests/isa/aarch64/symbol-value.clif
Trevor Elliott f04decc4a1 Use capstone to validate precise-output tests (#5780)
Use the capstone library to disassemble precise-output tests, in addition to pretty-printing their vcode.
2023-02-15 16:35:10 -08:00

26 lines
418 B
Plaintext

test compile precise-output
set unwind_info=false
target aarch64
function %f() -> i64 {
gv0 = symbol %my_global
block0:
v0 = symbol_value.i64 gv0
return v0
}
; VCode:
; block0:
; load_ext_name x0, TestCase(%my_global)+0
; ret
;
; Disassembled:
; block0: ; offset 0x0
; ldr x0, #8
; b #0x10
; .byte 0x00, 0x00, 0x00, 0x00 ; reloc_external Abs8 %my_global 0
; .byte 0x00, 0x00, 0x00, 0x00
; ret