[PATCH] test/rs6000: Add Power9 and up as vect_len target

Segher Boessenkool segher@kernel.crashing.org
Mon Aug 31 19:07:08 GMT 2020


Hi!

On Mon, Aug 31, 2020 at 02:43:50PM +0800, Kewen.Lin wrote:
> --- a/gcc/testsuite/lib/target-supports.exp
> +++ b/gcc/testsuite/lib/target-supports.exp
> @@ -7066,7 +7066,7 @@ proc check_effective_target_vect_fully_masked { } {
>  # @code{len_store} optabs.
>  
>  proc check_effective_target_vect_len_load_store { } {
> -    return 0
> +    return [expr { [check_effective_target_has_arch_pwr9] }]
>  }

Why not just

  return check_effective_target_has_arch_pwr9;

?  (Or lose at least two pairs of brackets if not all three :-) )

Okay for trunk, with that change if that works.  Thanks!


Segher


More information about the Gcc-patches mailing list