David Miller <da...@davemloft.net> writes:

> Could one of you help me get the solaris side correct?  I made sure
> that binutils accepts the same options for this stuff, that's why
> I can unconditionally use '-xarch=sparc4' in the configure test.

I assume this works because gas 2.22 had neither SPARC-T4 support nor
did it accept -xarch=sparc4?

> diff --git a/gcc/configure.ac b/gcc/configure.ac
> index b6c049b..9d2eb29 100644
> --- a/gcc/configure.ac
> +++ b/gcc/configure.ac
> @@ -3501,6 +3501,24 @@ foo:
>         fnaddd %f10, %f12, %f14],,
>        [AC_DEFINE(HAVE_AS_FMAF_HPC_VIS3, 1,
>                  [Define if your assembler supports FMAF, HPC, and VIS 3.0 
> instructions.])])
> +
> +    gcc_GAS_CHECK_FEATURE([SPARC4 instructions],
> +      gcc_cv_as_sparc_fmaf,,

Shouldn't reuse a cache variable here, but use
e.g. gcc_cv_as_sparc_sparc4 instead.

> +      [-xarch=sparc4],
> +      [.text
> +       .register %g2, #scratch
> +       .register %g3, #scratch
> +       .align 4
> +       cxbe %g2, %g3, 1f
> +1:     cwbneg %g2, %g3, 1f
> +1:     sha1
> +       md5
> +       aes_kexpand0 %f4, %f6, %f8
> +       des_round %f38, %f40, %f42, %f44
> +       camellia_f %f54, %f56, %f58, %f60
> +       kasumi_fi_xor %f46, %f48, %f50, %f52],,
> +      [AC_DEFINE(HAVE_AS_SPARC4, 1,
> +                [Define if your assembler supports SPARC4 instructions.])])
>      ;;
>  
>  changequote(,)dnl

        Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

Reply via email to