Files
wasmtime/cranelift/filetests/filetests/isa/x86/isub_imm-i8.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

15 lines
281 B
Plaintext

test compile
set opt_level=speed_and_size
target x86_64
function u0:0(i8) -> i8 fast {
ebb0(v0: i8):
v1 = iconst.i8 0
v2 = isub v1, v0
; check: v3 = uextend.i32 v0
; nextln: v5 = iconst.i32 0
; nextln = isub v5, v3
; nextln = ireduce.i8 v4
return v2
}