Use the target-lexicon crate.
This switches from a custom list of architectures to use the target-lexicon crate. - "set is_64bit=1; isa x86" is replaced with "target x86_64", and similar for other architectures, and the `is_64bit` flag is removed entirely. - The `is_compressed` flag is removed too; it's no longer being used to control REX prefixes on x86-64, ARM and Thumb are separate architectures in target-lexicon, and we can figure out how to select RISC-V compressed encodings when we're ready.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
test regalloc
|
||||
isa x86
|
||||
target i686
|
||||
|
||||
; %rdi can't be used in a movsbl instruction, so test that the register
|
||||
; allocator can move it to a register that can be.
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
test compile
|
||||
set is_64bit=1
|
||||
isa x86 haswell
|
||||
target x86_64 haswell
|
||||
|
||||
function %foo(i64, i64, i64, i32) -> b1 system_v {
|
||||
ebb3(v0: i64, v1: i64, v2: i64, v3: i32):
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
; Test the legalization of function signatures.
|
||||
test legalizer
|
||||
isa x86
|
||||
target i686
|
||||
|
||||
; regex: V=v\d+
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
; Test the legalization of function signatures.
|
||||
test legalizer
|
||||
set is_64bit
|
||||
isa x86
|
||||
target x86_64
|
||||
|
||||
; regex: V=v\d+
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
test binemit
|
||||
set opt_level=best
|
||||
set allones_funcaddrs
|
||||
isa x86 haswell
|
||||
target i686 haswell
|
||||
|
||||
; The binary encodings can be verified with the command:
|
||||
;
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
; binary emission of 64-bit code.
|
||||
test binemit
|
||||
set is_64bit
|
||||
set opt_level=best
|
||||
set allones_funcaddrs
|
||||
isa x86 haswell
|
||||
target x86_64 haswell
|
||||
|
||||
; The binary encodings can be verified with the command:
|
||||
;
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
|
||||
test compile
|
||||
set is_64bit
|
||||
isa x86 baseline
|
||||
target x86_64 baseline
|
||||
|
||||
|
||||
; clz/ctz on 64 bit operands
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
test binemit
|
||||
set is_64bit
|
||||
set opt_level=best
|
||||
isa x86 baseline
|
||||
target x86_64 baseline
|
||||
|
||||
; The binary encodings can be verified with the command:
|
||||
;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
; Binary emission of 32-bit floating point code.
|
||||
test binemit
|
||||
isa x86 haswell
|
||||
target i686 haswell
|
||||
|
||||
; The binary encodings can be verified with the command:
|
||||
;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; binary emission of x86-32 code.
|
||||
test binemit
|
||||
set opt_level=best
|
||||
isa x86 haswell
|
||||
target i686 haswell
|
||||
|
||||
; The binary encodings can be verified with the command:
|
||||
;
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
; Binary emission of 64-bit floating point code.
|
||||
test binemit
|
||||
set is_64bit
|
||||
set opt_level=best
|
||||
isa x86 haswell
|
||||
target x86_64 haswell
|
||||
|
||||
; The binary encodings can be verified with the command:
|
||||
;
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
; binary emission of 64-bit code.
|
||||
test binemit
|
||||
set is_64bit
|
||||
set opt_level=best
|
||||
set is_pic
|
||||
isa x86 haswell
|
||||
target x86_64 haswell
|
||||
|
||||
; The binary encodings can be verified with the command:
|
||||
;
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
; binary emission of x86-64 code.
|
||||
test binemit
|
||||
set is_64bit
|
||||
set opt_level=best
|
||||
isa x86 haswell
|
||||
target x86_64 haswell
|
||||
|
||||
; The binary encodings can be verified with the command:
|
||||
;
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
; Test legalization of a non-colocated call in 64-bit non-PIC mode.
|
||||
test legalizer
|
||||
set is_64bit
|
||||
set opt_level=best
|
||||
isa x86 haswell
|
||||
target x86_64 haswell
|
||||
|
||||
function %call() {
|
||||
fn0 = %foo()
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
; Test the custom legalizations.
|
||||
test legalizer
|
||||
isa x86
|
||||
set is_64bit
|
||||
isa x86
|
||||
target i686
|
||||
target x86_64
|
||||
|
||||
; regex: V=v\d+
|
||||
; regex: EBB=ebb\d+
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
; Test the division legalizations.
|
||||
test legalizer
|
||||
set is_64bit
|
||||
; See also legalize-div.cton.
|
||||
set avoid_div_traps=1
|
||||
isa x86
|
||||
target x86_64
|
||||
|
||||
; regex: V=v\d+
|
||||
; regex: EBB=ebb\d+
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
; Test the division legalizations.
|
||||
test legalizer
|
||||
set is_64bit
|
||||
; See also legalize-div-traps.cton.
|
||||
set avoid_div_traps=0
|
||||
isa x86
|
||||
target x86_64
|
||||
|
||||
; regex: V=v\d+
|
||||
; regex: EBB=ebb\d+
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
test legalizer
|
||||
|
||||
; Pre-SSE 4.1, we need to use runtime library calls for floating point rounding operations.
|
||||
set is_64bit
|
||||
set is_pic
|
||||
set call_conv=system_v
|
||||
isa x86
|
||||
target x86_64
|
||||
|
||||
function %floor(f32) -> f32 {
|
||||
ebb0(v0: f32):
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
; Test the legalization of memory objects.
|
||||
test legalizer
|
||||
set is_64bit
|
||||
isa x86
|
||||
target x86_64
|
||||
|
||||
; regex: V=v\d+
|
||||
; regex: EBB=ebb\d+
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
|
||||
test compile
|
||||
set is_64bit
|
||||
isa x86 baseline
|
||||
target x86_64 baseline
|
||||
|
||||
; umulhi/smulhi on 64 bit operands
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
; Check that floating-point constants equal to zero are optimized correctly.
|
||||
test binemit
|
||||
set is_64bit=0
|
||||
isa x86
|
||||
target i686
|
||||
|
||||
function %foo() -> f32 fast {
|
||||
ebb0:
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
; Check that floating-point constants equal to zero are optimized correctly.
|
||||
test binemit
|
||||
set is_64bit=1
|
||||
isa x86
|
||||
target x86_64
|
||||
|
||||
function %zero_const_32bit_no_rex() -> f32 fast {
|
||||
ebb0:
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
test compile
|
||||
set is_64bit=1
|
||||
set colocated_libcalls=1
|
||||
set probestack_func_adjusts_sp=1
|
||||
isa x86
|
||||
target x86_64
|
||||
|
||||
; Like %big in probestack.cton, but with the probestack function adjusting
|
||||
; the stack pointer itself.
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
test compile
|
||||
set is_64bit=1
|
||||
set colocated_libcalls=1
|
||||
set probestack_enabled=0
|
||||
isa x86
|
||||
target x86_64
|
||||
|
||||
; Like %big in probestack.cton, but with probes disabled.
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
test compile
|
||||
set is_64bit=1
|
||||
isa x86
|
||||
target x86_64
|
||||
|
||||
; Like %big in probestack.cton, but without a colocated libcall.
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
test compile
|
||||
set is_64bit=1
|
||||
set colocated_libcalls=1
|
||||
set probestack_size_log2=13
|
||||
isa x86
|
||||
target x86_64
|
||||
|
||||
; Like %big in probestack.cton, but now the probestack size is bigger
|
||||
; and it no longer needs a probe.
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
test compile
|
||||
set is_64bit=1
|
||||
set colocated_libcalls=1
|
||||
isa x86
|
||||
target x86_64
|
||||
|
||||
; A function with a big stack frame. This should have a stack probe.
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
test compile
|
||||
set is_64bit
|
||||
set opt_level=best
|
||||
set is_pic
|
||||
isa x86 haswell
|
||||
target x86_64 haswell
|
||||
|
||||
; An empty function.
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
test binemit
|
||||
set is_64bit=1
|
||||
set opt_level=best
|
||||
isa x86
|
||||
target x86_64
|
||||
|
||||
; Test that instruction shrinking eliminates REX prefixes when possible.
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
test compile
|
||||
set is_64bit
|
||||
set opt_level=best
|
||||
set is_pic
|
||||
isa x86 haswell
|
||||
target x86_64 haswell
|
||||
|
||||
; check if for one arg we use the right register
|
||||
function %one_arg(i64) windows_fastcall {
|
||||
|
||||
Reference in New Issue
Block a user