Fix block label printing in precise-output tests (#5798)
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>
This commit is contained in:
@@ -19,9 +19,10 @@ block0(v0: i16, v1: i16):
|
||||
; ret
|
||||
;
|
||||
; Disassembled:
|
||||
; block0: ; offset 0x0
|
||||
; pushq %rbp
|
||||
; movq %rsp, %rbp
|
||||
; block0: ; offset 0x4
|
||||
; block1: ; offset 0x4
|
||||
; movq %rdi, %rax
|
||||
; mulw %si
|
||||
; movq %rdx, %rax
|
||||
@@ -47,9 +48,10 @@ block0(v0: i32, v1: i32):
|
||||
; ret
|
||||
;
|
||||
; Disassembled:
|
||||
; block0: ; offset 0x0
|
||||
; pushq %rbp
|
||||
; movq %rsp, %rbp
|
||||
; block0: ; offset 0x4
|
||||
; block1: ; offset 0x4
|
||||
; movq %rdi, %rax
|
||||
; mull %esi
|
||||
; movq %rdx, %rax
|
||||
@@ -75,9 +77,10 @@ block0(v0: i64, v1: i64):
|
||||
; ret
|
||||
;
|
||||
; Disassembled:
|
||||
; block0: ; offset 0x0
|
||||
; pushq %rbp
|
||||
; movq %rsp, %rbp
|
||||
; block0: ; offset 0x4
|
||||
; block1: ; offset 0x4
|
||||
; movq %rdi, %rax
|
||||
; mulq %rsi
|
||||
; movq %rdx, %rax
|
||||
|
||||
Reference in New Issue
Block a user