Files
wasmtime/cranelift/filetests/filetests/isa/aarch64/bswap.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

53 lines
635 B
Plaintext

test compile precise-output
set unwind_info=false
target aarch64
function %f0(i64) -> i64 {
block0(v0: i64):
v1 = bswap v0
return v1
}
; VCode:
; block0:
; rev64 x0, x0
; ret
;
; Disassembled:
; block0: ; offset 0x0
; rev x0, x0
; ret
function %f1(i32) -> i32 {
block0(v0: i32):
v1 = bswap v0
return v1
}
; VCode:
; block0:
; rev32 w0, w0
; ret
;
; Disassembled:
; block0: ; offset 0x0
; rev w0, w0
; ret
function %f2(i16) -> i16 {
block0(v0: i16):
v1 = bswap v0
return v1
}
; VCode:
; block0:
; rev16 w0, w0
; ret
;
; Disassembled:
; block0: ; offset 0x0
; rev16 w0, w0
; ret