[PATCH, rs6000] Add support for vec_revb builtin

2017-07-11 Thread Carl Love
). Please let me know if the following patch is acceptable. Thanks. Carl Love gcc/ChangeLog: 2017-07-11 Carl Love <c...@us.ibm.com> * config/rs6000/rs6000-c.c: Add support for built-in functions vecto

[PATCH, rs6000] Fix builtins-1-p9-runnable.c

2017-07-07 Thread Carl Love
was expecting the test to fail on non power 9 systems, but this fix makes the test results much cleaner. Carl Love ---- 2017-07-07 Carl Love <c...@us.ibm.com> * gcc.target/powerpc/builtins-1-p9-runnable.c (dg-ddo run): Add

[PATCH, rs6000] Add vec_parity builtin

2017-07-10 Thread Carl Love
). The result is 2 expected passes. Please let me know if the following patch is acceptable. Thanks. Carl Love -- gcc/ChangeLog: 2017-07-07 Carl Love <c...@us.ibm.com> * config/rs6000/rs6000-c.c: Add s

[PATCH, rs6000] Add testcases for vec_cnttz

2017-07-14 Thread Carl Love
GCC Maintainers: The following patch add testcases and documentation for the --- gcc/ChangeLog: 2017-07-14 Carl Love <c...@us.ibm.com> * doc/extend.texi: Update the built-in documentation file for the existing

[PATCH, rs6000 V2] Add support for vec_extract_fp_from_shorth() and vec_extract_fp_from_short

2017-07-14 Thread Carl Love
uction. I don't see any functional or performance advantage of the xxperm over vperm. Please let me know if the following patch is acceptable. Thanks. Carl Love gcc/ChangeLog: 2017-07-14 Carl Love <c.

[PATCH] add vec_pack_to_short builtin.

2017-07-07 Thread Carl Love
. Carl Love - gcc/ChangeLog: 2017-07-06 Carl Love <c...@us.ibm.com> * config/rs6000/rs6000-c: Add support for built-in function vector unsigned short vec_pack_to_short_fp32 (vector

Re: [PATCH, rs6000] Add testcases for vec_cnttz

2017-07-25 Thread Carl Love
On Tue, 2017-07-25 at 06:19 -0500, Segher Boessenkool wrote: > Hi! > > On Mon, Jul 24, 2017 at 01:51:20PM -0700, Carl Love wrote: > > On Fri, 2017-07-14 at 15:58 -0500, Segher Boessenkool wrote: > > > On Fri, Jul 14, 2017 at 01:20:32PM -0700, Carl Love wrote: > > &

Re: [PATCH, rs6000] Add testcases for vec_cnttz

2017-07-24 Thread Carl Love
On Fri, 2017-07-14 at 15:58 -0500, Segher Boessenkool wrote: > Hi Carl, > > On Fri, Jul 14, 2017 at 01:20:32PM -0700, Carl Love wrote: > > --- /dev/null > > +++ b/gcc/testsuite/gcc.target/powerpc/builtins-4-p9-runnable.c > > @@ -0,0 +1,95 @@ > > +/* { dg-do run {

[PATCH, rs6000] Add support for the vec_xl_be builtin

2017-07-27 Thread Carl Love
is acceptable. Thanks. Carl Love -- gcc/ChangeLog: 2017-07-27 Carl Love <c...@us.ibm.com> * config/rs6000/rs6000-c: Add support for built-in functions vector signed char vec_xl_be (

[PATCH, rs6000] Add support for vec_extract_fp_from_shorth() and vec_extract_fp_from_short

2017-07-12 Thread Carl Love
on Power 8 and 2 test passes on Power 9. Please let me know if the following patch is acceptable. Thanks. Carl Love gcc/ChangeLog: 2017-07-12 Carl Love <c...@us.ibm.com> * config/rs6000/rs6000-c.

[PATCH, rs6000] builtins-3-vec_reve-runnable fix minimum platform

2017-06-28 Thread Carl Love
). Bill Schmidt said that the minimum platform that the builtins need to be supported on is Power 7. The following patch sets the minimum platform as Power 7. Please let me know if the following patch is acceptable. Thanks. Carl Love

[PATCH, rs6000] Add additional support for vec_subc, vec_sube, vec_subec builtins.

2017-06-30 Thread Carl Love
BE). Please let me know if the following patch is acceptable. Thanks. Carl Love - gcc/ChangeLog: 2017-06-29 Carl Love <c...@us.ibm.com> * config/rs6000/rs6000-c.c: Add support for built-in fun

[PATCH, rs6000] Signed builtin support

2017-06-28 Thread Carl Love
? Carl Love -- gcc/ChangeLog: 2017-06-28 Carl Love <c...@us.ibm.com> * config/rs6000/rs6000-c.c: Add support for built-in functions vector signed int vec_signed (vector float); vector signed lon

[PATCH, rs6000] Move vec_mulo() and vec_mule() builtin test cases to P8 test file.

2017-08-04 Thread Carl Love
. Carl Love -- gcc/testsuite/ChangeLog: 2017-08-04 Carl Love <c...@us.ibm.com> * gcc.target/powerpc/builtins-3.c: Remove builtin test cases for vec_mule, and vec_mulo. * gcc.target/powerpc/bu

[PATCH, rs6000] Add vec_reve support

2017-06-20 Thread Carl Love
GCC maintainers: This patch adds support for the various vec_reve builtins. The patch has been tested on powerpc64le-unknown-linux-gnu (Power 8 LE) and on powerpc64-unknown-linux-gnu (Power 8 BE) with no regressions. Is the patch OK for gcc mainline? Carl Love

Re: [PATCH v2, rs6000] Add vec_reve support

2017-06-21 Thread Carl Love
additional changes to the test case builtins-3-vec_reve-runnable.c for debugging purposes. These changes make it easy to turn on/off debugging. Please let me know if the revised patch OK for gcc mainline? Carl Love --- 2017

[PATCH, rs6000] Fix for vec_mulo and vec_mule test case

2017-06-22 Thread Carl Love
for the omission in the previous patch. I have tested the following fix on powerpc64le-unknown-linux-gnu (Power 8 LE), powerpc64-unknown-linux-gnu(Power 8 BE), powerpc64-unknown-linux-gnu (Power 7). Is the fix OK for gcc mainline? Carl Love

[PATCH v3, rs6000] Add vec_reve support

2017-06-23 Thread Carl Love
BE), powerpc64-unknown-linux-gnu (Power 7). Please let me know if you see anything else that needs fixing. Thanks. Carl Love gcc/ChangeLog: 2017-06-23 Carl Love <c...@us.ibm.com> * config/rs6000/rs60

[PATCH, rs6000] Fix vec_mulo and vec_mule instruction generation

2017-06-16 Thread Carl Love
-linux-gnu (Power 8 LE) Is the patch OK for gcc mainline? Carl Love - >From 3127a3f9c8480fde428c4a13bc37d6eaefd0edfe Mon Sep 17 00:00:00 2001 From: Carl Love <ca...@us.ibm.com> Date: Fri, 16 Jun 2017 16:10:56 -0500 Subjec

[PATCH rs6000] Fix for commit 249311

2017-06-16 Thread Carl Love
. Carl Love gcc/ChangeLog: 2017-06-16 Carl Love <c...@us.ibm.com> * config/rs6000/altivec.md (define_mode_attr VF_sxddp): Move to vsx.md. * config/rs6000/vsx.md (define_mode_attr VF_sxddp define_expand &

Re: [PATCH v4, rs6000] gcc mainline, add builtin support for vec_float, vec_float2, vec_floate, vec_floate, builtins

2017-06-16 Thread Carl Love
(Power 8 LE) only. Please let me know if there are any additional issues that need fixing. Thanks. Carl Love gcc/ChangeLog: 2017-06-16 Carl Love <c...@us.ibm.com> * config/rs6000/rs6000-c.c (altivec_overloaded_bu

Re: [PATCH, rs6000 version 3] Add support for vec_xst_len_r() and vec_xl_len_r() builtins

2017-09-18 Thread Carl Love
additional issues to address. 2017-09-18 Carl Love <c...@us.ibm.com> * config/rs6000/rs6000-c.c (P9V_BUILTIN_VEC_XL_LEN_R, P9V_BUILTIN_VEC_XST_LEN_R): Add support for builtins vector unsigne

[PATCH version 4, rs6000] Add builtins to convert from float/double to int/long using current rounding mode

2017-09-21 Thread Carl Love
also manually ran make -k check with --target_board=unix`{-m64,-m32}` against the test case to make sure it worked fine for both 32-bit and 64-bit. Please let me know if the following patch is acceptable. Thanks. Carl Love

Re: [PATCH, rs6000 version 2] Add support for vec_xst_len_r() and vec_xl_len_r() builtins

2017-09-14 Thread Carl Love
te. I believe everything else has been addressed. The patch was retested on powerpc64le-unknown-linux-gnu (Power 9 LE) and powerpc64le-unknown-linux-gnu (Power 8 LE) without regressions. Let me know if there are additional issues that need addressing. Thanks. Carl Love --

Re: [PATCH version 3, rs6000] Add builtins to convert from float/double to int/long using current rounding mode

2017-09-13 Thread Carl Love
are prior to 2.04 so called it P1 to catch all builtins prior to isa 2.04. Let me know if you have suggestions/comments. Thanks. Carl Love - gcc/ChangeLog: 2017-09-14 Carl Love <c...@u

[PATCH, rs6000] Add Power 8 support to vec_revb

2017-10-09 Thread Carl Love
is acceptable. Thanks. Carl Love --- >From 5813b99e68f1a5e82bcc1cb1ee0636f6386ba841 Mon Sep 17 00:00:00 2001 From: Carl Love <c...@us.ibm.com> Date: Mon, 2 Oct 2017 11:04:01 -050

[PATCH version 2, rs6000] Add builtins to convert from float/double to int/long using current rounding mode

2017-09-08 Thread Carl Love
-unknown-linux-gnu (Power 8 LE). Please let me know if the following patch is acceptable. Thanks. Carl Love -- gcc/ChangeLog: 2017-09-08 Carl Love <c...@us.ibm.com> * config/rs6000/

[PATCH, rs6000] add vectorization to vec_mule and vec_mulo builtins

2017-09-11 Thread Carl Love
-unknown-linux-gnu (Power 8 BE) systems with no regressions. Please let me know if the following patch is acceptable. Thanks. Carl Love gcc/ChangeLog: 2017-09-11 Carl Love <c...@us.ibm.

[PATCH, rs6000] Add support for vec_xst_len_r() and vec_xl_len_r() builtins

2017-09-06 Thread Carl Love
5 > # of unexpected failures 1 > /home/carll/GCC/build/gcc-base/./gcc/gccgo version 8.0.0 20170905 > (experimental) (GCC) Please let me know if the following patch is acceptable. Thanks. Carl Love ---

Re: [PATCH, rs6000] Add builtins to convert from float/double to int/long using current rounding mode

2017-09-06 Thread Carl Love
On Wed, 2017-09-06 at 16:13 -0500, Pat Haugen wrote: > On 09/06/2017 11:24 AM, Carl Love wrote: > > + "fctiw %1,%1; mfvsrd %0,%1; extsw %0,%0" > > + [(set_attr "type" "integer") > > + (set_attr "length" "4")]) > >

Re: [PATCH version 2, rs6000] Add builtins to convert from float/double to int/long using current rounding mode

2017-09-12 Thread Carl Love
On Tue, 2017-09-12 at 11:49 -0500, Segher Boessenkool wrote: > Hi Carl, > > On Fri, Sep 08, 2017 at 11:41:13AM -0700, Carl Love wrote: > > The following patch adds support for a couple of requested builtins that > > convert from float/double to int / long using the current

[PATCH, rs6000] Add builtins to convert from float/double to int/long using current rounding mode

2017-09-06 Thread Carl Love
. Thanks. Carl Love --- gcc/ChangeLog: 2017-09-06 Carl Love <c...@us.ibm.com> * config/rs6000/rs6000-builtin.def (FCTID, FCTIW): Add BU_P7_MISC_1 macro expansion for bu

Re: [PATCH, rs6000] Add Power 8 support to vec_revb

2017-10-17 Thread Carl Love
let me know if the following patch is acceptable. Thanks. Carl Love --- gcc/ChangeLog: 2017-10-17 Carl Love <c...@us.ibm.com> * config/rs6000/rs6000-c.c (P8V_BUILTIN_VEC_REVB): Add

[PATCH, rs6000] Add vec_mergee, vec_mergeo, vec_float2 builtin support

2017-12-18 Thread Carl Love
-unknown-linux-gnu (Power 8 BE) powerpc64le-unknown-linux-gnu (Power 9 LE) without regressions. Please let me know if the following patch is acceptable. Thanks. Carl Love gcc/ChangeLog

Re: [PATCH, rs6000 V4] Add Power 8 support to vec_revb

2017-11-02 Thread Carl Love
know if the following patch is acceptable. Thanks. Carl Love -- gcc/ChangeLog: 2017-11-01 Carl Love <c...@us.ibm.com> * config/rs6000/rs6000-c.c (P8V_BUILTIN_VEC_REVB): Add power 8 definitions. (P9V_BUILTIN_VEC_REVB): Remove the p

[PATCH, rs6000 V4] Fixes for commit 254464

2017-11-09 Thread Carl Love
is acceptable. Thanks. Carl Love - gcc/ChangeLog: 2017-11-09 Carl Love <c...@us.ibm.com> * config/rs6000/rs6000.c (swap_endian_selector_for_mode): Remove le_ and be_ prefixes to swap* variables.

[PATCH, rs6000 V2] Add Power 9 support for vec_first builtins

2017-11-09 Thread Carl Love
- gcc/ChangeLog: 2017-11-07 Carl Love <c...@us.ibm.com> * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add support for builtins: unsigned int vec_first_{,miss}_match_{,or_eos}index ( vector {un,}signed {char,int,short}, vector {un,}signed {ch

[PATCH, rs6000] Add __builtin_altivec_vsumsws

2017-11-08 Thread Carl Love
regressions. Please let me know if the following patch is acceptable. Thanks. Carl Love -- gcc/ChangeLog: 2017-11-08 Carl Love <c...@us.ibm.com> * config/rs6000/rs60

[PATCH, rs6000] Add missing builtin functionality and tests

2017-12-07 Thread Carl Love
BE) powerpc64le-unknown-linux-gnu (Power 9 LE) without regressions. Please let me know if the following patch is acceptable. Thanks. Carl Love - gcc/ChangeLog: 2017-12-07 Carl Love <c...@us.ibm.

[PATCH, rs6000] Add additional builtin tests

2017-12-07 Thread Carl Love
(Power 9 LE) without regressions. Please let me know if the following patch is acceptable. Thanks. Carl Love --- gcc/testsuite/ChangeLog: 2017-12-07 Carl Love <c...@us.ibm.

Re: [PATCH, rs6000] Add Power 9 support for vec_first builtins

2017-10-31 Thread Carl Love
GCC maintainers: The patch has been updated to fix the typo and retested. Unfortunately the names of the builtins are rather long and unwieldy to begin with. Please let me know if the following patch is acceptable. Thanks. Carl Love

Re: [PATCH, rs6000] Add missing vec_max tests

2018-05-04 Thread Carl Love
Please let me know if everything looks OK now. Thanks. Carl Love ---- gcc/testsuite/ChangeLog: 2018-05-03 Carl Love  <c...@us.ibm.com> * gcc.target/powerpc/vsx-vector-6.h (foo): Add test for

[PATCH, rs6000] Map dcbtst, dcbtt to n2=0 for __builtin_prefetch builtin.

2018-05-07 Thread Carl Love
  48:   ec 49 00 7c dcbtst  0,r9  ... The regression testing of the patch was done on powerpc64le-unknown-linux-gnu (Power 8 LE) with no regressions. Please let me know if the patch looks OK for GCC mainline.  

Re: [PATCH, rs6000] Map dcbtst, dcbtt to n2=0 for __builtin_prefetch builtin.

2018-05-08 Thread Carl Love
Thoughts on how to limit the generation of dcbtt and dcbtstt to Power 7 or newer? Carl Love

[PATCH, rs6000] Add missing vec_expte, vec_loge, vec_re

2018-05-09 Thread Carl Love
me know if the patch looks OK for GCC mainline.  Carl Love - gcc/testsuite/ChangeLog: 2018-05-09 Carl Love <c...@us.ibm.com> * gcc.target/powerpc/builtins-8-runnable.c: New builtin tes

[PATCH, rs6000] Fix expected BE counts for vsx-vector-6.h

2018-05-10 Thread Carl Love
BE) configured for power7  powerpc64-unknown-linux-gnu (Power 8 BE) configured for power8 Please let me know if the patch looks OK for GCC mainline.  Carl Love - gcc/testsuite/ChangeLog: 2018-05-10 Carl Love &l

Re: [PATCH, rs6000] Map dcbtstt, dcbtt to n2=0 for __builtin_prefetch builtin.

2018-05-10 Thread Carl Love
49 00 7c dcbtst  0,r9 Please let me know if the patch looks OK for GCC mainline. Carl Love test case gcc/testsuite/gcc.target/sh/prefetch.c gcc/ChangeLog: 2018-05-10 Carl Love <c...@us.ibm.

[PATCH, rs6000] Fixes for builtin_prefetch for AIX compatability.

2018-05-16 Thread Carl Love
Power 8 Please let me know if the fix is acceptable for trunk. Thanks. Carl Love - gcc/ChangeLog: 2018-05-16 Carl Love <c...@us.ibm.com> * config/rs6000/rs6000.md (prefetch): Genera

Re: [PATCH, rs6000] Fix expected BE counts for vsx-vector-6.h

2018-05-15 Thread Carl Love
know if the patch looks OK for GCC mainline.  Carl Love - gcc/testsuite/ChangeLog: 2018-05-14 Carl Love <c...@us.ibm.com> * gcc.target/powerpc/vsx-vector-6-be.c: Remove file * gcc.target/power

Re: [PATCH , rs6000] Add missing builtin test cases, fix arguments to match specifications.

2018-05-21 Thread Carl Love
for GCC mainline.  Carl Love --- gcc/testsuite/ChangeLog: 2018-05-18  Carl Love  <c...@us.ibm.com> * gcc.target/powerpc/altivec-12.c (main): Fix declaration of ucz to make it cons

Re: [PATCH , rs6000] Add missing builtin test cases, fix arguments to match specifications.

2018-05-17 Thread Carl Love
On Thu, 2018-05-17 at 15:31 -0500, Segher Boessenkool wrote: > Hi! > > On Wed, May 16, 2018 at 12:53:13PM -0700, Carl Love wrote: > > diff --git a/gcc/testsuite/gcc.target/powerpc/altivec-12.c > > b/gcc/testsuite/gcc.target/powerpc/altivec-12.c > > index b0267b5..1

[PATCH , rs6000] Add missing builtin test cases, fix arguments to match specifications.

2018-05-16 Thread Carl Love
if the patch looks OK for GCC mainline.  Carl Love --- gcc/testsuite/ChangeLog: 2018-05-15 Carl Love <c...@us.ibm.com> * gcc.target/powerpc/altivec-12.c (main): Change vector char ucz vector un

[PATCH , rs6000] Add builtin tests for vec_madds, vec_extract_fp32_from_shortl and vec_extract_fp32_from_shorth, vec_xst_be

2018-05-23 Thread Carl Love
) powerpc64-unknown-linux-gnu (Power 8 BE) With no regressions. Please let me know if the patch looks OK for GCC mainline.  Carl Love --- gcc/testsuite/ChangeLog: 2018-05-21 Carl Love <c...@us.ibm.

Re: [PATCH , rs6000] Add missing builtin test cases, fix arguments to match specifications.

2018-05-23 Thread Carl Love
On Wed, 2018-05-23 at 13:26 -0500, Segher Boessenkool wrote: > Hi Carl, > > I committed the be/le selectors. > > On Mon, May 21, 2018 at 08:15:30AM -0700, Carl Love wrote: > > --- a/gcc/testsuite/gcc.target/powerpc/builtins-1-be.c > > +++ b/gcc/testsuite/gcc.tar

Re: [PATCH, rs6000] Add missing test cases, fix arguments to match specifications.

2018-06-08 Thread Carl Love
t to GCC to extract the double element. Based on a quick look at the code, that is not trivial. So, I have dropped the changes to file p9-extract-1.c from the patch. The updated patch is given below. Please let me know if this revised patch is OK for mainline. The changes to p9-extrac

[PATCH, rs6000] Add BE support to builtin vec_extract_fp32_from_shorth, vec_extract_fp32_from_shortl

2018-06-07 Thread Carl Love
back porting to GCC 8 as well.  Carl Love - gcc/ChangeLog: 2018-05-31 Carl Love * gcc/config/rs6000/vsx.md (vextract_fp_from_shorth vextract_fp_from_shortl): Add BE support. gcc

[PATCH] Fix altivec-7 issues on Power 6

2018-06-08 Thread Carl Love
w if the patch looks OK for GCC mainline.   Carl Love - gcc/testsuite/ChangeLog: 2018-06-08 Carl Love * gcc.target/powerpc/altivec-7.c (main): Remove tests vec_unpackh(vecubi[0]) and vec_unpackl(

Re: [PATCH] Fix altivec-7 issues on Power 6

2018-06-08 Thread Carl Love
GCC maintainers: Aargh!! I attached an old copy of the patch to the original message. Guess it is time to do some house cleaning. Carl Love --- gcc/testsuite/ChangeLog: 2018-06-08 Carl Love * gcc.target/powerpc/altivec-7.c (main

Re: [PATCH, rs6000] Fix AIX expected builtin instruction counts

2018-06-18 Thread Carl Love
BE)     AIX 7200-00-01-1543 (Power 8 BE) With no regressions. Please let me know if the patch looks OK for GCC mainline.   Carl Love gcc/testsuite/ChangeLog: 2018-06-18 Carl Love * gcc.target/powerpc

[PATCH, rs6000] Fix AIX expected builtin instruction counts

2018-06-14 Thread Carl Love
OK for GCC mainline.   Carl Love -- gcc/testsuite/ChangeLog: 2018-06-12 Carl Love * gcc.target/powerpc/altivec-7.c: Add qualifiers for counts on AIX versus Linux. * gcc.target

[PATCH, rs6000] Cleanup vsx-vector-6 test files.

2018-06-07 Thread Carl Love
was retested on: powerpc64le-unknown-linux-gnu (Power 8 LE)    powerpc64le-unknown-linux-gnu (Power 9 LE) powerpc64-unknown-linux-gnu (Power 8 BE) With no regressions. Please let me know if the patch looks OK for GCC mainline.  Carl Love

[PATCH,rs6000] Fix vec_permxor builtin support, fix test cases for vec_permxor and vec_insert4b

2018-06-05 Thread Carl Love
for the builtin. The patch was retested on: powerpc64le-unknown-linux-gnu (Power 8 LE)    powerpc64le-unknown-linux-gnu (Power 9 LE) powerpc64-unknown-linux-gnu (Power 8 BE) With no regressions. Please let me know if the patch looks OK for GCC mainline.  Carl Love

Re: [PATCH,rs6000] Fix vec_permxor builtin support, fix test cases for vec_permxor and vec_insert4b

2018-06-05 Thread Carl Love
r signed char, vector signed char, vector signed char); vector unsigned char vec_permxor (vector unsigned char, vector unsigned char, vector unsigned char); If so, we only want the changes to vec_insert4b in builtins-7-p9-runnable.c. I will re-spin the patch. Thanks. Carl

[PATCH, rs6000] Add BE support for first_match_index, first_match_or_eos_index, first_mismatch_index, first_mismatch_or_eos_index

2018-06-06 Thread Carl Love
on a Power 8 BE system and then the generated binary file was examined via objdump to see that the desired instruction was generated. Please let me know if the patch looks OK for GCC mainline.  Carl Love

Re: [PATCH,rs6000] Fix vec_permxor builtin support, fix test cases for vec_permxor and vec_insert4b

2018-06-06 Thread Carl Love
h leaving just the changes to file gcc/testsuite/gcc.target/powerpc/builtins-7-p9-runnable.c. The patch was retested on: powerpc64le-unknown-linux-gnu (Power 8 LE)    powerpc64le-unknown-linux-gnu (Power 9 LE) powerpc64-unknown-linux-gnu (Power 8 BE)

[PATCH, rs6000] Split up builtins-3.c tests

2018-06-06 Thread Carl Love
looks OK for GCC mainline.  Carl Love - gcc/testsuite/ChangeLog: 2018-06-05 Carl Love * gcc.target/powerpc/builtins-3.c: Move tests requiring -mvsx to builtins-4.c. * gcc.target/powerpc/builtins-4.c

[PATCH, rs6000] Add missing test cases, fix arguments to match specifications.

2018-06-06 Thread Carl Love
-unknown-linux-gnu (Power 8 BE) With no regressions. Please let me know if the patch looks OK for GCC mainline.  Carl Love - gcc/testsuite/ChangeLog: 2018-06-06 Carl Love * gcc.target/powerpc

Re: [PATCH, rs6000] Add BE support for first_match_index, first_match_or_eos_index, first_mismatch_index, first_mismatch_or_eos_index

2018-06-06 Thread Carl Love
> > > > > > Looks great, please apply to trunk.  Thanks! > > > > Yes, the builtin works with lshrsi3 change.  I will commit with > > this > > change. > > It occurs in four places, please fix all then. Yup, I already got all four of them. :-) Carl Love

Re: [PATCH, rs6000] Add BE support for first_match_index, first_match_or_eos_index, first_mismatch_index, first_mismatch_or_eos_index

2018-06-06 Thread Carl Love
3 change. I will commit with this change. FYI, Bill would like to patch backported to GCC 8. Is that OK? Carl Love

Re: [PATCH , rs6000] Add missing builtin test cases, fix arguments to match specifications.

2018-05-29 Thread Carl Love
BE) With no regressions. Please let me know if the patch looks OK for GCC mainline.  Carl Love --- gcc/testsuite/ChangeLog: 2018-05-29 Carl Love * gcc.target/powerpc/altivec-12.c (main): Fix

Re: [PATCH , rs6000] Add builtin tests for vec_madds, vec_extract_fp32_from_shortl and vec_extract_fp32_from_shorth, vec_xst_be

2018-05-29 Thread Carl Love
BE) With no regressions. Please let me know if the patch looks OK for GCC mainline.  Carl Love -- gcc/testsuite/ChangeLog: 2018-05-29  Carl Love   * gcc.target/powerpc/altivec-35.c (foo): Add builtin

Re: [PATCH,rs6000] Fix implementation of vec_unpackh, vec_unpackl builtins

2018-06-29 Thread Carl Love
at's all I see; will leave to Segher to approve, of course.  Ah, yes. Fixed. Carl Love

[PATCH, rs6000] Add missing builtin test cases

2018-06-27 Thread Carl Love
.   Please let me know if the following patch is acceptable.  Thanks.   Carl Love - gcc/testsuite/ChangeLog: 2018-06-27 Carl Love * gcc.target/p9-extract-1.c: Add test case. * gcc.target/builtins-3-p9

Re: [PATCH, rs6000] Fix AIX test case failures

2018-06-25 Thread Carl Love
On Mon, 2018-06-25 at 04:44 -0500, Segher Boessenkool wrote: > Hi Carl, > > On Fri, Jun 22, 2018 at 02:55:44PM -0700, Carl Love wrote: > > --- a/gcc/testsuite/gcc.target/powerpc/divkc3-2.c > > +++ b/gcc/testsuite/gcc.target/powerpc/divkc3-2.c > > @@ -13,4 +13,5 @@

[PATCH, rs6000] Fix AIX test case failures

2018-06-22 Thread Carl Love
for GCC mainline.   Carl Love -- gcc/testsuite/ChangeLog: 2018-06-22 Carl Love * gcc.target/powerpc/divkc3-2.c: Make check Linux and AIX specific. * gcc.target/powerpc/divkc3-3.c: Make

[PATCH, rs6000] Change word selector to prefered location for vec_insert builtin

2018-06-22 Thread Carl Love
(offset 0 bytes) instead of word 1. The values are the same so there is no functional change. But it was decided that using word 0 was preferred choice. Carl Love - gcc/ChangeLog: 2018-06-19 Carl Love * config/rs6000

Re: [PATCH, rs6000] Fix AIX expected builtin instruction counts

2018-06-20 Thread Carl Love
Segher: I believe I have addressed all of your concerns with the patch. I have retested it and it looks good. Please let me know if the patch looks OK for GCC mainline.   Carl Love >F

[PATCH, rs6000] Add missing vec_max tests

2018-04-30 Thread Carl Love
OK for GCC mainline. Carl Love - gcc/testsuite/ChangeLog: 2018-04-27 Carl Love <c...@us.ibm.com> * gcc.target/powerpc/vsx-vector-6.h (foo): Add test for vec_max, vec

[PATCH, rs6000] Add vec_first_match_index, vec_first_mismatch_index, vec_first_match_or_eos_index, vec_first_mismatch_or_eos_index

2018-04-30 Thread Carl Love
-unknown-linux-gnu (Power 8 BE)     powerpc64le-unknown-linux-gnu (Power 9 LE).  Please let me know if the patch looks OK for GCC mainline. Carl Love - gcc/testsuite/ChangeLog: 2018-04-27 Carl Love <c...@us.ibm.

Re: [PATCH, rs6000] Add missing vec_max tests

2018-04-30 Thread Carl Love
GCC Maintainers: I have re-worked the patch per Peter's comments. I retested the patch on P8 BE, P8 LE and P9 LE.  Please let me know if the patch looks OK for GCC mainline. Carl Love gcc/testsuite/ChangeLog: 2018

[PATCH, rs6000] Add Power 9 support for vec_first builtins

2017-10-19 Thread Carl Love
-gnu (Power 9 LE) without regressions. Please let me know if the following patch is acceptable. Thanks. Carl Love gcc/ChangeLog: 2017-10-19 Carl Love <c...@us.ibm.com> * config/rs6000/rs60

Re: [PATCH, rs6000 V3] Add Power 8 support to vec_revb

2017-10-23 Thread Carl Love
pc64le-unknown-linux-gnu (Power 9 LE) without regressions. Please let me know if the following patch is acceptable. Thanks. Carl Love - gcc/ChangeLog: 2017-10-17 Carl Love <c...@us.ibm.com>

Re: [PATCH, rs6000 V3] Add Power 8 support to vec_revb

2017-10-27 Thread Carl Love
ared in this scope emit_insn (gen_p9_xxbr_ (operands[0], operands[1])); Because for mode v16qi still gets expanded to "b" not "q". There is no definition for "gen_p9_xxbrb_v16qi" since xxbrb is not vaild. Short of using a different expander for I don't see how to not get the expansion. Sorry if I am missing something obvious here. Carl Love

Re: [PATCH,rs6000] Fix implementation of vec_unpackh, vec_unpackl builtins

2018-07-03 Thread Carl Love
Segher: On Mon, 2018-07-02 at 11:53 -0500, Segher Boessenkool wrote: > Hi! > > On Fri, Jun 29, 2018 at 07:38:39AM -0700, Carl Love wrote: > > +;; Unpack high elements of float vector to vector of doubles > > +(define_expand "altivec_unpackh_v4sf" >

[PATCH, rs6000] Add 128-bit support for vec_xl(), vec_xl_be(), vec_xst(), vec_xst_be() builtins.

2018-01-18 Thread Carl Love
know if you want to include it in stage 4 or wait for the next release. Thanks. Carl Love gcc/ChangeLog: 2018-01-18 Carl Love <c...@us.ibm.com> * config/rs6000/rs6000-builtin.def (ST_ELEMRE

Re: [PATCH, rs6000] Add 128-bit support for vec_xl(), vec_xl_be(), vec_xst(), vec_xst_be() builtins.

2018-01-19 Thread Carl Love
On Fri, 2018-01-19 at 10:13 -0600, Segher Boessenkool wrote: > On Thu, Jan 18, 2018 at 04:51:47PM -0600, Segher Boessenkool wrote: > > > +(define_insn "vsx_ld_elemrev_v1ti" > > > +  [(set (match_operand:V1TI 0 "vsx_register_operand" "=wa") > > > +(vec_select:V1TI > > > +   

Re: [PATCH, rs6000] Add 128-bit support for vec_xl(), vec_xl_be(), vec_xst(), vec_xst_be() builtins.

2018-01-19 Thread Carl Love
On Fri, 2018-01-19 at 10:13 -0600, Segher Boessenkool wrote: > On Thu, Jan 18, 2018 at 04:51:47PM -0600, Segher Boessenkool wrote: > > > +(define_insn "vsx_ld_elemrev_v1ti" > > > +  [(set (match_operand:V1TI 0 "vsx_register_operand" "=wa") > > > +(vec_select:V1TI > > > +   

[PATCH, rs6000] Fix typo in documentation file.

2018-01-29 Thread Carl Love
testing done. Please let me know if the patch is acceptable to apply to mainline. Carl Love ___ Index: gcc/doc/extend.texi === --- gcc/doc/extend.texi

[PATCH, rs6000] Add builtin support for vec_insert4b, vec_extract4b

2018-02-01 Thread Carl Love
et me know if you want to include it in stage 4 or wait for the next release.  Thanks.    Carl Love -- gcc/ChangeLog: 2018-01-31 Carl Love <c...@us.ibm.com> * config/rs6000/altivec.h: Chang

Re: [PATCH rs6000] Fix for builtins-4-runnable.c testcase FAIL on power7/BE 32-bit

2018-02-12 Thread Carl Love
On Mon, 2018-02-12 at 09:17 -0600, Segher Boessenkool wrote: > Hi Carl, > > On Fri, Feb 09, 2018 at 02:09:06PM -0800, Carl Love wrote: > > As pointed out, the dg arguments in new test file was missing the > > {target 128}.  I updated the arguments to be  > > > >

[PATCH rs6000] Fix for builtins-4-runnable.c testcase FAIL on power7/BE 32-bit

2018-02-09 Thread Carl Love
and restricted to run only when int128 type is supported. The patch passes the regression testing on Power 8 BE enabled for 64- bit and 32-bit modes. Additionally, the patch passes regression testing on Power 8 LE. Let me know if the patch looks OK or not.  Carl Love gcc

Re: [PATCH rs6000] Fix for builtins-4-runnable.c testcase FAIL on power7/BE 32-bit

2018-02-09 Thread Carl Love
ins-4-runnable.c was run similarly to verify it passed on both machines. Carl Love --- gcc/testsuite/ChangeLog: 2018-02-09 Carl Love <c...@us.ibm.com> *

[PATCH, rs6000] Add builtin support for vec_insert4b, vec_extract4b

2018-02-14 Thread Carl Love
tch looks OK or not. Thanks. The patch should also be ported to GCC 7 so we are in compliance with the ABI. Carl Love --- gcc/ChangeLog: 2018-02-13 Carl Love <c...@us.ibm.com>

[PATCH, rs6000] Remove non-ABI builtin support for vec_insert4b, vec_extract4b

2018-02-14 Thread Carl Love
been tested on:   powerpc64le-unknown-linux-gnu (Power 8 LE)   powerpc64le-unknown-linux-gnu (Power 9 LE) with no regressions. Let me know if the patch looks OK or not. Thanks. The patch should also be ported to GCC 7 so we are in compliance with the ABI.    Carl Love

[PATCH rs6000] Fix for builtins-4-int128-runnable.c

2018-02-14 Thread Carl Love
="--target_board=unix'{-mcpu=power7}' powerpc.exp=builtins-4-int128-runnable.c"  to verify the test passes cleanly with the change in the dg directives. Please let me know if the patch is OK for trunk. Thanks.

[PATCH rs6000], Move Power 8 tests, fix ICE for vec_unsigned2, vec_signed2

2018-02-21 Thread Carl Love
-linux-gnu (Power 8LE) powerpc64le-unknown-linux-gnu (Power 9LE) and no regressions were found. Additionally, the tests were compiled by hand with -mcpu=power7 to ensure gcc doesn't give and ICE. Please let me know if the patch looks OK or not. Thanks.    Carl Love

[PATCH, rs6000] Tests for builtin vec_neg updated

2018-02-22 Thread Carl Love
. Please let me know if the patch looks OK or not. Thanks.    Carl Love - gcc/testsuite/ChangeLog: 2018-02-22 Carl Love <c...@us.ibm.com> * gcc.target/powerpc/builtins-3.c: Move vec_neg builtin

[Patch, rs6000] Require Power 8 for vec_float2 builtin

2018-02-16 Thread Carl Love
to verify the issue is fixed. The testing was don on powerpc64le-unknown-linux-gnu (Power 8 LE) Please let me know if the patch looks OK or not. Thanks. Carl Love - gcc/ChangeLog: 2018-02-16

[PATCH, rs6000] Require Power 8 for vec_neg builtin.

2018-02-16 Thread Carl Love
ot. Thanks.    Carl Love - gcc/ChangeLog: 2018-02-16 Carl Love <c...@us.ibm.com> * config/rs6000/rs6000-builtin.def: Change NEG macro expansions from BU_ALTIVEC_A to BU_P8V_AV_1 and BU_AL

Re: [Patch, rs6000] Require Power 8 for vec_float2 builtin

2018-02-16 Thread Carl Love
On Fri, 2018-02-16 at 10:21 -0800, Carl Love wrote: > > > > > Do you have a new testcase, too?  Or is this all covered by > > existing > > tests (which?) > > The issue was found when compiling the existing test case file with > -mcpu=power7.  No additi

  1   2   >