Use the capstone library to disassemble precise-output tests, in addition to pretty-printing their vcode.
26 lines
418 B
Plaintext
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
|
|
|