From: Andrew Stubbs Date: Thu, 16 Apr 2020 19:20:22 +0000 (+0100) Subject: amdgcn: Testsuite tweaks X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cf3a909cf45514cd294e483a7c86ef16c82ffa96;p=gcc.git amdgcn: Testsuite tweaks The vector size chosen here is for V64DImode. The concept of this setting is not well adapted for GCN, in which the vector size varies with the number of lanes, not the other way around, but this is ok for now. 2020-04-24 Andrew Stubbs gcc/testsuite/ * lib/target-supports.exp (available_vector_sizes): Add amdgcn. (check_effective_target_vect_cmdline_needed): Disable for amdgcn. (check_effective_target_vect_pack_trunc): Add amdgcn. --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 33edc25076d..ec141198a81 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2020-04-24 Andrew Stubbs + + * lib/target-supports.exp (available_vector_sizes): Add amdgcn. + (check_effective_target_vect_cmdline_needed): Disable for amdgcn. + (check_effective_target_vect_pack_trunc): Add amdgcn. + 2020-04-24 Iain Sandoe PR c++/94288 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 008def691b3..f416d5cafda 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -3261,7 +3261,8 @@ proc check_effective_target_vect_cmdline_needed { } { || [check_effective_target_powerpc_altivec])) || ([istarget sparc*-*-*] && [check_effective_target_sparc_vis]) || ([istarget arm*-*-*] && [check_effective_target_arm_neon]) - || [istarget aarch64*-*-*] } { + || [istarget aarch64*-*-*] + || [istarget amdgcn*-*-*]} { return 0 } else { return 1 @@ -6806,7 +6807,8 @@ proc check_effective_target_vect_pack_trunc { } { || ([istarget mips*-*-*] && [et-is-effective-target mips_msa]) || ([istarget s390*-*-*] - && [check_effective_target_s390_vx]) }}] + && [check_effective_target_s390_vx]) + || [istarget amdgcn*-*-*] }}] } # Return 1 if the target plus current options supports a vector @@ -7231,6 +7233,8 @@ proc available_vector_sizes { } { } } elseif { [istarget sparc*-*-*] } { lappend result 64 + } elseif { [istarget amdgcn*-*-*] } { + lappend result 4096 } else { # The traditional default asumption. lappend result 128