As a follow-up to #5780, disassemble the regions identified by bb_starts, falling back on disassembling the whole buffer. This ensures that instructions like br_table that introduce a lot of constants don't throw off capstone for the remainder of the function. --------- Co-authored-by: Jamey Sharp <jamey@minilop.net>
38 lines
739 B
Plaintext
38 lines
739 B
Plaintext
test compile precise-output
|
|
set opt_level=speed
|
|
set use_egraphs=true
|
|
set machine_code_cfg_info=true
|
|
target x86_64
|
|
|
|
;; We want to make sure that this compiles successfully, so we are properly
|
|
;; handling multi-value operator nodes.
|
|
|
|
function u0:359(i64) -> i8, i8 system_v {
|
|
sig0 = (i64) -> i8, i8 system_v
|
|
fn0 = colocated u0:521 sig0
|
|
|
|
block0(v0: i64):
|
|
v3, v4 = call fn0(v0)
|
|
return v3, v4
|
|
}
|
|
|
|
; VCode:
|
|
; pushq %rbp
|
|
; movq %rsp, %rbp
|
|
; block0:
|
|
; call User(userextname0)
|
|
; movq %rbp, %rsp
|
|
; popq %rbp
|
|
; ret
|
|
;
|
|
; Disassembled:
|
|
; block0: ; offset 0x0
|
|
; pushq %rbp
|
|
; movq %rsp, %rbp
|
|
; block1: ; offset 0x4
|
|
; callq 9 ; reloc_external CallPCRel4 u0:521 -4
|
|
; movq %rbp, %rsp
|
|
; popq %rbp
|
|
; retq
|
|
|