Files
wasmtime/cranelift/filetests/filetests/isa/x64/floor-libcall.clif
Trevor Elliott cc073593a4 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>
2023-02-16 02:35:26 +00:00

58 lines
961 B
Plaintext

test compile precise-output
target x86_64 has_sse41=false
function %f1(f32) -> f32 {
block0(v0: f32):
v1 = floor v0
return v1
}
; VCode:
; pushq %rbp
; movq %rsp, %rbp
; block0:
; load_ext_name %FloorF32+0, %rcx
; call *%rcx
; movq %rbp, %rsp
; popq %rbp
; ret
;
; Disassembled:
; block0: ; offset 0x0
; pushq %rbp
; movq %rsp, %rbp
; block1: ; offset 0x4
; movabsq $0, %rcx ; reloc_external Abs8 %FloorF32 0
; callq *%rcx
; movq %rbp, %rsp
; popq %rbp
; retq
function %f2(f64) -> f64 {
block0(v0: f64):
v1 = floor v0
return v1
}
; VCode:
; pushq %rbp
; movq %rsp, %rbp
; block0:
; load_ext_name %FloorF64+0, %rcx
; call *%rcx
; movq %rbp, %rsp
; popq %rbp
; ret
;
; Disassembled:
; block0: ; offset 0x0
; pushq %rbp
; movq %rsp, %rbp
; block1: ; offset 0x4
; movabsq $0, %rcx ; reloc_external Abs8 %FloorF64 0
; callq *%rcx
; movq %rbp, %rsp
; popq %rbp
; retq