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

43 lines
742 B
Plaintext

test compile
target x86_64 legacy
function u0:0(i128) -> i8 fast {
block0(v0: i128):
brz v0, block2
; check: v0 = iconcat v3, v4
; nextln: v5 = icmp_imm eq v3, 0
; nextln: v6 = icmp_imm eq v4, 0
; nextln: v7 = band v5, v6
; nextln: brnz v7, block2
jump block1
block1:
v1 = iconst.i8 0
return v1
block2:
v2 = iconst.i8 1
return v2
}
function u0:1(i128) -> i8 fast {
block0(v0: i128):
brnz v0, block2
; check: v0 = iconcat v3, v4
; nextln: brnz v3, block2
; nextln: fallthrough block3
; check: block3:
; nextln: brnz.i64 v4, block2
jump block1
; nextln: fallthrough block1
block1:
v1 = iconst.i8 0
return v1
block2:
v2 = iconst.i8 1
return v2
}