Skip to content

Commit 41566a3

Browse files
clazissartemiy-volkov
authored andcommitted
arc64: Enable extra vector tests
Signed-off-by: Claudiu Zissulescu <[email protected]>
1 parent ddabee3 commit 41566a3

File tree

1 file changed

+45
-1
lines changed

1 file changed

+45
-1
lines changed

gcc/testsuite/lib/target-supports.exp

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4087,7 +4087,8 @@ proc check_effective_target_vect_int { } {
40874087
|| [is-effective-target arm_neon]
40884088
|| ([istarget mips*-*-*]
40894089
&& ([et-is-effective-target mips_loongson_mmi]
4090-
|| [et-is-effective-target mips_msa]))
4090+
|| [et-is-effective-target mips_msa]))
4091+
|| ([istarget arc64-*-])
40914092
|| ([istarget s390*-*-*]
40924093
&& [check_effective_target_s390_vx])
40934094
|| ([istarget riscv*-*-*]
@@ -4156,6 +4157,7 @@ proc check_effective_target_vect_complex_add_byte { } {
41564157
&& [check_effective_target_aarch64_little_endian])
41574158
|| ([check_effective_target_arm_v8_1m_mve_fp_ok]
41584159
&& [check_effective_target_arm_little_endian])
4160+
|| ([istarget arc64-*-*])
41594161
}}]
41604162
}
41614163

@@ -4171,6 +4173,7 @@ proc check_effective_target_vect_complex_add_short { } {
41714173
&& [check_effective_target_aarch64_little_endian])
41724174
|| ([check_effective_target_arm_v8_1m_mve_fp_ok]
41734175
&& [check_effective_target_arm_little_endian])
4176+
|| ([istarget arc64-*-*])
41744177
}}]
41754178
}
41764179

@@ -4219,6 +4222,7 @@ proc check_effective_target_vect_complex_add_half { } {
42194222
&& [check_effective_target_aarch64_little_endian])
42204223
|| ([check_effective_target_arm_v8_1m_mve_fp_ok]
42214224
&& [check_effective_target_arm_little_endian])
4225+
|| ([check_effective_target_arc64_fp16_vfloat])
42224226
}}]
42234227
}
42244228

@@ -4237,6 +4241,7 @@ proc check_effective_target_vect_complex_add_float { } {
42374241
&& [check_effective_target_aarch64_little_endian])
42384242
|| ([check_effective_target_arm_v8_1m_mve_fp_ok]
42394243
&& [check_effective_target_arm_little_endian])
4244+
|| ([check_effective_target_arc64_fp32_vfloat])
42404245
}}]
42414246
}
42424247

@@ -4252,6 +4257,7 @@ proc check_effective_target_vect_complex_add_double { } {
42524257
&& [check_effective_target_aarch64_little_endian])
42534258
|| ([check_effective_target_aarch64_sve2]
42544259
&& [check_effective_target_aarch64_little_endian]))
4260+
|| ([check_effective_target_arc64_fp64_vfloat])
42554261
}}]
42564262
}
42574263

@@ -4544,6 +4550,40 @@ proc check_effective_target_arc64_atomic { } {
45444550
}]
45454551
}
45464552

4553+
proc check_effective_target_arc64_fp16_vfloat { } {
4554+
if { ![istarget arc64-*-*] } {
4555+
return 0;
4556+
}
4557+
return [check_no_compiler_messages arc_fp16_vfloat assembly {
4558+
#if !defined(__ARC_FPU_SP__)
4559+
#error NO_16b_FLOATS
4560+
#endif
4561+
}]
4562+
}
4563+
4564+
proc check_effective_target_arc64_fp32_vfloat { } {
4565+
if { ![istarget arc64-*-*] } {
4566+
return 0;
4567+
}
4568+
return [check_no_compiler_messages arc_fp32_vfloat assembly {
4569+
#if !defined(__ARC_FPU_SP__)
4570+
#error NO_32b_FLOATS
4571+
#endif
4572+
}]
4573+
}
4574+
4575+
proc check_effective_target_arc64_fp64_vfloat { } {
4576+
if { ![istarget arc64-*-*] } {
4577+
return 0;
4578+
}
4579+
return [check_no_compiler_messages arc_fp64_vfloat assembly {
4580+
#if !defined(__ARC_FPU_DP__) && !defined(__ARC64_WIDE_VECTOR)
4581+
#error NO_64b_FLOATS
4582+
#endif
4583+
}]
4584+
}
4585+
4586+
45474587
# Return 1 if this is an arm target using 32-bit instructions
45484588
proc check_effective_target_arm32 { } {
45494589
if { ![istarget arm*-*-*] } {
@@ -7767,6 +7807,7 @@ proc check_effective_target_vect_perm { } {
77677807
|| [et-is-effective-target mips_msa]))
77687808
|| ([istarget s390*-*-*]
77697809
&& [check_effective_target_s390_vx])
7810+
|| ([istarget arc64-*-*])
77707811
|| [istarget amdgcn-*-*]
77717812
|| ([istarget riscv*-*-*]
77727813
&& [check_effective_target_riscv_v])
@@ -11773,6 +11814,9 @@ proc check_vect_support_and_set_flags { } {
1177311814
} else {
1177411815
set dg-do-what-default compile
1177511816
}
11817+
} elseif [istarget arc64-*-*] {
11818+
lappend DEFAULT_VECTCFLAGS "-ffast-math"
11819+
set dg-do-what-default run
1177611820
} else {
1177711821
return 0
1177811822
}

0 commit comments

Comments
 (0)