This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, rs6000] Tests for builtin vec_neg updated


Hi Carl,

On Thu, Feb 22, 2018 at 07:41:10AM -0800, Carl Love wrote:
> 	* gcc.target/powerpc/builtins-3.c: Move vec_neg builtin tests to
> 	Power 8 test file.
> 	* gcc.target/powerpc/builtins-3-p8.c: Add vec_neg builtin tests.
> 	* gcc.target/powerpc/fold-vec-neg-char.c(dg-options): Add -mcpu=power8.
> 	* gcc.target/powerpc/fold-vec-neg-floatdouble.c(dg-options): Add
> 	-mcpu=power8.
> 	* gcc.target/powerpc/fold-vec-neg-int.c(dg-options): Remove file.
> 	* gcc.target/powerpc/fold-vec-neg-short.c(dg-options): Add
> 	-mcpu=power8.

You should use a space before ( there.

> +     test_neg_char                             1 vspltisw, 1 vsububm
> +     test_neg_short                            1 vspltisw, 1 vsubuhm
> +     test_neg_int                              1 vspltisw, 1 vsubuwm

All these are p6 already (so needs just -maltivec).

> +     test_neg_float                            1 xvnegsp
> +     test_neg_float                            1 xvnegdp

... and these are p7 (so needs just -mvsx).  I don't understand why you
move them to a p8 file?  Or ah, this is because the builtin is not
defined before p8?  Okay for trunk if so :-)

Thanks,


Segher


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]