Files
wasmtime/cranelift/filetests/filetests/regalloc/reload-779.clif
Chris Fallin cb48ea406e Switch default to new x86_64 backend.
This PR switches the default backend on x86, for both the
`cranelift-codegen` crate and for Wasmtime, to the new
(`MachInst`-style, `VCode`-based) backend that has been under
development and testing for some time now.

The old backend is still available by default in builds with the
`old-x86-backend` feature, or by requesting `BackendVariant::Legacy`
from the appropriate APIs.

As part of that switch, it adds some more runtime-configurable plumbing
to the testing infrastructure so that tests can be run using the
appropriate backend. `clif-util test` is now capable of parsing a
backend selector option from filetests and instantiating the correct
backend.

CI has been updated so that the old x86 backend continues to run its
tests, just as we used to run the new x64 backend separately.

At some point, we will remove the old x86 backend entirely, once we are
satisfied that the new backend has not caused any unforeseen issues and
we do not need to revert.
2021-04-02 11:35:53 -07:00

24 lines
522 B
Plaintext

test compile
target x86_64 legacy
; Filed as https://github.com/bytecodealliance/cranelift/issues/779
;
; The copy_nop optimisation to reload (see Issue 773) was creating
; copy_nop instructions for types for which there were no encoding.
function u0:0(i64, i64, i64) system_v {
sig0 = () system_v
sig1 = (i16) system_v
fn1 = u0:94 sig0
fn2 = u0:95 sig1
block0(v0: i64, v1: i64, v2: i64):
v3 = iconst.i16 0
jump block1(v3)
block1(v4: i16):
call fn1()
call fn2(v4)
jump block1(v4)
}