Files
wasmtime/cranelift/filetests/filetests/isa/x86/stack-load-store64.clif
julian-seward1 9e088e4164 Reorganise optimisation level settings, and make the insn shrink pass optional (#1044)
This patch:

* removes the "default" opt level, on the basis that it has no definition and
  is referred to nowhere in the compiler.

* renames the "fastest" level to "none".  The resulting set of transformations
  is unchanged.

* renames the "best" level to "speed_and_size".  The resulting set of
  transformations is unchanged.

* adds a new level, "speed".  This is the same as "speed_and_size" except that
  it omits transformations aimed only at reducing code size.  Currently it
  omits only the insn shrinking pass.
2019-09-19 18:51:25 +02:00

22 lines
419 B
Plaintext

; legalization of stack load and store instructions on x86-64.
test legalizer
set opt_level=none
target x86_64 haswell
function %stack_load_and_store() {
ss0 = explicit_slot 8, offset 0
ebb0:
v0 = stack_load.i64 ss0
; check: v1 = stack_addr.i64 ss0
; check: v0 = load.i64 notrap aligned v1
stack_store.i64 v0, ss0
; check: v2 = stack_addr.i64 ss0
; check: store notrap aligned v0, v2
return
}