Rename intel to x86.

x86 is the more accurate name, as there are non-Intel x86 implementations.

Fixes #263.
This commit is contained in:
Dan Gohman
2018-04-12 15:23:39 -07:00
parent 9e17e62d68
commit 1c760ab179
87 changed files with 222 additions and 225 deletions

View File

@@ -1,6 +1,6 @@
test compile
set is_64bit=1
isa intel haswell
isa x86 haswell
function %foo(i64, i64, i64, i32) -> b1 system_v {
ebb3(v0: i64, v1: i64, v2: i64, v3: i32):

View File

@@ -1,6 +1,6 @@
; Test the legalization of function signatures.
test legalizer
isa intel
isa x86
; regex: V=v\d+

View File

@@ -1,7 +1,7 @@
; Test the legalization of function signatures.
test legalizer
set is_64bit
isa intel
isa x86
; regex: V=v\d+

View File

@@ -2,11 +2,11 @@
test binemit
set is_compressed
set allones_funcaddrs
isa intel haswell
isa x86 haswell
; The binary encodings can be verified with the command:
;
; sed -ne 's/^ *; asm: *//p' filetests/isa/intel/allones_funcaddrs32.cton | llvm-mc -show-encoding -triple=i386
; sed -ne 's/^ *; asm: *//p' filetests/isa/x86/allones_funcaddrs32.cton | llvm-mc -show-encoding -triple=i386
;
; Tests from binary32.cton affected by allones_funcaddrs.

View File

@@ -3,11 +3,11 @@ test binemit
set is_64bit
set is_compressed
set allones_funcaddrs
isa intel haswell
isa x86 haswell
; The binary encodings can be verified with the command:
;
; sed -ne 's/^ *; asm: *//p' filetests/isa/intel/allones_funcaddrs64.cton | llvm-mc -show-encoding -triple=x86_64
; sed -ne 's/^ *; asm: *//p' filetests/isa/x86/allones_funcaddrs64.cton | llvm-mc -show-encoding -triple=x86_64
;
; Tests from binary64.cton affected by allones_funcaddrs.

View File

@@ -1,7 +1,7 @@
test compile
set is_64bit
isa intel baseline
isa x86 baseline
; clz/ctz on 64 bit operands

View File

@@ -2,11 +2,11 @@
test binemit
set is_64bit
set is_compressed
isa intel baseline
isa x86 baseline
; The binary encodings can be verified with the command:
;
; sed -ne 's/^ *; asm: *//p' filetests/isa/intel/baseline_clz_ctz_popcount_encoding.cton | llvm-mc -show-encoding -triple=x86_64
; sed -ne 's/^ *; asm: *//p' filetests/isa/x86/baseline_clz_ctz_popcount_encoding.cton | llvm-mc -show-encoding -triple=x86_64
;
function %Foo() {

View File

@@ -1,10 +1,10 @@
; Binary emission of 32-bit floating point code.
test binemit
isa intel haswell
isa x86 haswell
; The binary encodings can be verified with the command:
;
; sed -ne 's/^ *; asm: *//p' filetests/isa/intel/binary32-float.cton | llvm-mc -show-encoding -triple=i386
; sed -ne 's/^ *; asm: *//p' filetests/isa/x86/binary32-float.cton | llvm-mc -show-encoding -triple=i386
;
function %F32() {

View File

@@ -1,11 +1,11 @@
; binary emission of x86-32 code.
test binemit
set is_compressed
isa intel haswell
isa x86 haswell
; The binary encodings can be verified with the command:
;
; sed -ne 's/^ *; asm: *//p' filetests/isa/intel/binary32.cton | llvm-mc -show-encoding -triple=i386
; sed -ne 's/^ *; asm: *//p' filetests/isa/x86/binary32.cton | llvm-mc -show-encoding -triple=i386
;
function %I32() {

View File

@@ -2,11 +2,11 @@
test binemit
set is_64bit
set is_compressed
isa intel haswell
isa x86 haswell
; The binary encodings can be verified with the command:
;
; sed -ne 's/^ *; asm: *//p' filetests/isa/intel/binary64-float.cton | llvm-mc -show-encoding -triple=x86_64
; sed -ne 's/^ *; asm: *//p' filetests/isa/x86/binary64-float.cton | llvm-mc -show-encoding -triple=x86_64
;
function %F32() {

View File

@@ -3,11 +3,11 @@ test binemit
set is_64bit
set is_compressed
set is_pic
isa intel haswell
isa x86 haswell
; The binary encodings can be verified with the command:
;
; sed -ne 's/^ *; asm: *//p' filetests/isa/intel/binary64-pic.cton | llvm-mc -show-encoding -triple=x86_64
; sed -ne 's/^ *; asm: *//p' filetests/isa/x86/binary64-pic.cton | llvm-mc -show-encoding -triple=x86_64
;
; Tests for i64 instructions.

View File

@@ -2,11 +2,11 @@
test binemit
set is_64bit
set is_compressed
isa intel haswell
isa x86 haswell
; The binary encodings can be verified with the command:
;
; sed -ne 's/^ *; asm: *//p' filetests/isa/intel/binary64.cton | llvm-mc -show-encoding -triple=x86_64
; sed -ne 's/^ *; asm: *//p' filetests/isa/x86/binary64.cton | llvm-mc -show-encoding -triple=x86_64
;
; Tests for i64 instructions.

View File

@@ -1,8 +1,8 @@
; Test the custom legalizations.
test legalizer
isa intel
isa x86
set is_64bit
isa intel
isa x86
; regex: V=v\d+
; regex: EBB=ebb\d+

View File

@@ -3,7 +3,7 @@ test legalizer
set is_64bit
; See also legalize-div.cton.
set avoid_div_traps=1
isa intel
isa x86
; regex: V=v\d+
; regex: EBB=ebb\d+

View File

@@ -3,7 +3,7 @@ test legalizer
set is_64bit
; See also legalize-div-traps.cton.
set avoid_div_traps=0
isa intel
isa x86
; regex: V=v\d+
; regex: EBB=ebb\d+

View File

@@ -3,7 +3,7 @@ test legalizer
; Pre-SSE 4.1, we need to use runtime library calls for floating point rounding operations.
set is_64bit
set is_pic
isa intel
isa x86
function %floor(f32) -> f32 {
ebb0(v0: f32):

View File

@@ -1,7 +1,7 @@
; Test the legalization of memory objects.
test legalizer
set is_64bit
isa intel
isa x86
; regex: V=v\d+
; regex: EBB=ebb\d+

View File

@@ -1,7 +1,7 @@
test compile
set is_64bit
isa intel baseline
isa x86 baseline
; umulhi/smulhi on 64 bit operands

View File

@@ -2,7 +2,7 @@ test compile
set is_64bit
set is_compressed
set is_pic
isa intel haswell
isa x86 haswell
; An empty function.

View File

@@ -1,5 +1,5 @@
test postopt
isa intel
isa x86
; Test that compare+branch sequences are folded effectively on x86.

View File

@@ -1,6 +1,6 @@
test preopt
isa intel baseline
isa x86 baseline
; Cases where the denominator is created by an iconst

View File

@@ -1,6 +1,6 @@
test preopt
isa intel baseline
isa x86 baseline
; -------- U32 --------

View File

@@ -1,6 +1,6 @@
test preopt
isa intel baseline
isa x86 baseline
; -------- U32 --------

View File

@@ -1,6 +1,6 @@
test preopt
isa intel baseline
isa x86 baseline
; -------- U32 --------

View File

@@ -1,6 +1,6 @@
test preopt
isa intel baseline
isa x86 baseline
; -------- U32 --------

View File

@@ -1,5 +1,5 @@
test preopt
isa intel
isa x86
function %iadd_imm(i32) -> i32 {
ebb0(v0: i32):

View File

@@ -1,6 +1,6 @@
test regalloc
set is_64bit
isa intel haswell
isa x86 haswell
function %value_aliases(i32, f32, i64 vmctx) spiderwasm {
gv0 = vmctx

View File

@@ -1,6 +1,6 @@
test regalloc
set is_64bit
isa intel haswell
isa x86 haswell
; Reported as https://github.com/Cretonne/cretonne/issues/207
;

View File

@@ -1,6 +1,6 @@
test regalloc
set is_64bit
isa intel haswell
isa x86 haswell
; Reported as https://github.com/Cretonne/cretonne/issues/216 from the Binaryen fuzzer.
;

View File

@@ -1,6 +1,6 @@
test regalloc
set is_64bit
isa intel haswell
isa x86 haswell
function %pr227(i32 [%rdi], i32 [%rsi], i32 [%rdx], i32 [%rcx], i64 vmctx [%r8]) system_v {
gv0 = vmctx

View File

@@ -1,5 +1,5 @@
test regalloc
isa intel
isa x86
; regex: V=v\d+
; regex: REG=%r([abcd]x|[sd]i)

View File

@@ -1,6 +1,6 @@
test regalloc
set is_64bit
isa intel haswell
isa x86 haswell
; This test case would create an EBB parameter that was a ghost value.
; The coalescer would insert a copy of the ghost value, leading to verifier errors.

View File

@@ -1,11 +1,11 @@
test regalloc
isa intel
isa x86
; This test covers the troubles when values with global live ranges are defined
; by instructions with constrained register classes.
;
; The icmp_imm instrutions write their b1 result to the ABCD register class on
; 32-bit Intel. So if we define 5 live values, they can't all fit.
; 32-bit x86. So if we define 5 live values, they can't all fit.
function %global_constraints(i32) {
ebb0(v0: i32):
v1 = icmp_imm eq v0, 1

View File

@@ -1,6 +1,6 @@
test regalloc
set is_64bit=1
isa intel haswell
isa x86 haswell
function %foo() system_v {
ebb4:

View File

@@ -1,6 +1,6 @@
test regalloc
set is_64bit
isa intel haswell
isa x86 haswell
function u0:9(i64 [%rdi], f32 [%xmm0], f64 [%xmm1], i32 [%rsi], i32 [%rdx], i64 vmctx [%r14]) -> i64 [%rax] spiderwasm {
ebb0(v0: i64, v1: f32, v2: f64, v3: i32, v4: i32, v5: i64):

View File

@@ -1,10 +1,10 @@
test regalloc
set is_64bit
isa intel haswell
isa x86 haswell
; Test combinations of constraints.
;
; The Intel ushr instruction requires its second operand to be passed in %rcx and its output is
; The x86 ushr instruction requires its second operand to be passed in %rcx and its output is
; tied to the first input operand.
;
; If we pass the same value to both operands, both constraints must be satisfied.

View File

@@ -1,11 +1,11 @@
test regalloc
set is_64bit=1
isa intel haswell
isa x86 haswell
function %test(i64) -> i64 system_v {
ebb0(v0: i64):
v2 = iconst.i64 12
; This division clobbers two of its fixed input registers on Intel.
; This division clobbers two of its fixed input registers on x86.
; These are FixedTied constraints that the spiller needs to resolve.
v5 = udiv v0, v2
v6 = iconst.i64 13

View File

@@ -1,6 +1,6 @@
test regalloc
set is_64bit
isa intel haswell
isa x86 haswell
; regex: V=v\d+

View File

@@ -1,5 +1,5 @@
test regalloc
isa intel haswell
isa x86 haswell
function %pr165() system_v {
ebb0:

View File

@@ -1,6 +1,6 @@
test regalloc
set is_64bit
isa intel
isa x86
; Test case found by the Binaryen fuzzer.
;

View File

@@ -2,7 +2,7 @@
test compile
set is_64bit
isa intel haswell
isa x86 haswell
; This function contains unreachable blocks which trip up the register
; allocator if they don't get cleared out.

View File

@@ -1,6 +1,6 @@
test regalloc
isa intel
isa x86
; regex: V=v\d+

View File

@@ -1,5 +1,5 @@
test verifier
isa intel
isa x86
; Simple, correct use of CPU flags.
function %simple(i32) -> i32 {

View File

@@ -2,10 +2,10 @@
test compile
set is_64bit=0
isa intel haswell
isa x86 haswell
set is_64bit=1
isa intel haswell
isa x86 haswell
function %br_if(i32) -> i32 {
ebb0(v0: i32):

View File

@@ -2,7 +2,7 @@
test compile
set is_64bit=1
isa intel haswell
isa x86 haswell
function %i32_wrap_i64(i64) -> i32 {
ebb0(v0: i64):

View File

@@ -2,10 +2,10 @@
test compile
set is_64bit=0
isa intel haswell
isa x86 haswell
set is_64bit=1
isa intel haswell
isa x86 haswell
; Constants.

View File

@@ -2,10 +2,10 @@
test compile
set is_64bit=0
isa intel haswell
isa x86 haswell
set is_64bit=1
isa intel haswell
isa x86 haswell
function %f32_eq(f32, f32) -> i32 {
ebb0(v0: f32, v1: f32):

View File

@@ -4,7 +4,7 @@ test compile
; We only test on 64-bit since the heap_addr instructions and vmctx parameters
; explicitly mention the pointer width.
set is_64bit=1
isa intel haswell
isa x86 haswell
function %f32_load(i32, i64 vmctx) -> f32 {
gv0 = vmctx

View File

@@ -2,7 +2,7 @@
test compile
set is_64bit=1
isa intel haswell
isa x86 haswell
; Constants.

View File

@@ -2,10 +2,10 @@
test compile
set is_64bit=0
isa intel haswell
isa x86 haswell
set is_64bit=1
isa intel haswell
isa x86 haswell
function %f64_eq(f64, f64) -> i32 {
ebb0(v0: f64, v1: f64):

View File

@@ -4,7 +4,7 @@ test compile
; We only test on 64-bit since the heap_addr instructions and vmctx parameters
; explicitly mention the pointer width.
set is_64bit=1
isa intel haswell
isa x86 haswell
function %f64_load(i32, i64 vmctx) -> f64 {
gv0 = vmctx

View File

@@ -2,10 +2,10 @@
test compile
set is_64bit=0
isa intel haswell
isa x86 haswell
set is_64bit=1
isa intel haswell
isa x86 haswell
; Constants.

View File

@@ -2,10 +2,10 @@
test compile
set is_64bit=0
isa intel haswell
isa x86 haswell
set is_64bit=1
isa intel haswell
isa x86 haswell
function %i32_eqz(i32) -> i32 {
ebb0(v0: i32):

View File

@@ -4,7 +4,7 @@ test compile
; We only test on 64-bit since the heap_addr instructions and vmctx parameters
; explicitly mention the pointer width.
set is_64bit=1
isa intel haswell
isa x86 haswell
function %i32_load(i32, i64 vmctx) -> i32 {
gv0 = vmctx

View File

@@ -2,7 +2,7 @@
test compile
set is_64bit=1
isa intel haswell
isa x86 haswell
; Constants.

View File

@@ -2,7 +2,7 @@
test compile
set is_64bit=1
isa intel haswell
isa x86 haswell
function %i64_eqz(i64) -> i32 {
ebb0(v0: i64):

View File

@@ -4,7 +4,7 @@ test compile
; We only test on 64-bit since the heap_addr instructions and vmctx parameters
; explicitly mention the pointer width.
set is_64bit=1
isa intel haswell
isa x86 haswell
function %i64_load(i32, i64 vmctx) -> i64 {
gv0 = vmctx

View File

@@ -2,10 +2,10 @@
test compile
set is_64bit=0
isa intel haswell
isa x86 haswell
set is_64bit=1
isa intel haswell
isa x86 haswell
function %select_i32(i32, i32, i32) -> i32 {
ebb0(v0: i32, v1: i32, v2: i32):