This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r269642 - in /branches/gcc-8-branch/gcc: Change...
- From: krebbel at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 13 Mar 2019 09:50:22 -0000
- Subject: r269642 - in /branches/gcc-8-branch/gcc: Change...
Author: krebbel
Date: Wed Mar 13 09:50:21 2019
New Revision: 269642
URL: https://gcc.gnu.org/viewcvs?rev=269642&root=gcc&view=rev
Log:
S/390: Fix the vec_xl / vec_xst style builtins
This patch fixes several problems with the vec_xl/vec_xst builtins:
- vec_xl/vec_xst needs to use the alignment of the scalar memory
operand for the vector type reference. This is required to emit the
proper vl/vst alignment hints.
- vec_xl / vec_xld2 / vec_xlw4 should accept const pointer source operands
- vec_xlw4 / vec_xstw4 needs to accept float memory operands
gcc/ChangeLog:
2019-03-13 Andreas Krebbel <krebbel@linux.ibm.com>
Backport from mainline
2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
* config/s390/s390-builtin-types.def: Add new types.
* config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
(s390_vec_xlw4): Make the memory operand into a const pointer.
(s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
float.
* config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
a new vector type with the alignment of the scalar memory operand.
gcc/testsuite/ChangeLog:
2019-03-13 Andreas Krebbel <krebbel@linux.ibm.com>
Backport from mainline
2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
* gcc.target/s390/zvector/xl-xst-align-1.c: New test.
* gcc.target/s390/zvector/xl-xst-align-2.c: New test.
Added:
branches/gcc-8-branch/gcc/testsuite/gcc.target/s390/zvector/xl-xst-align-1.c
branches/gcc-8-branch/gcc/testsuite/gcc.target/s390/zvector/xl-xst-align-2.c
Modified:
branches/gcc-8-branch/gcc/ChangeLog
branches/gcc-8-branch/gcc/config/s390/s390-builtin-types.def
branches/gcc-8-branch/gcc/config/s390/s390-builtins.def
branches/gcc-8-branch/gcc/config/s390/s390-c.c
branches/gcc-8-branch/gcc/testsuite/ChangeLog