Files
wasmtime/cranelift/filetests/filetests/egraph/misc.clif
Afonso Bordado a10c50afe9 cranelift: Translate stack_* accesses as unaligned (#6016)
We can't currently ensure that these will be aligned, so we shouldn't mark them as such.
2023-03-15 18:05:55 +00:00

22 lines
433 B
Plaintext

test optimize
set opt_level=speed
set use_egraphs=true
target x86_64
function %stack_load(i64) -> i64 {
ss0 = explicit_slot 8
block0(v0: i64):
stack_store.i64 v0, ss0
v1 = stack_load.i64 ss0
return v1
}
; check: function %stack_load(i64) -> i64 fast {
; nextln: ss0 = explicit_slot 8
; check: block0(v0: i64):
; nextln: v2 = stack_addr.i64 ss0
; nextln: store notrap v0, v2
; nextln: return v0
; nextln: }