From: Andreas Krebbel Date: Tue, 26 Sep 2017 10:35:00 +0000 (+0000) Subject: S/390: Set the preferred mode for float vectors X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=41067f07b9eb7bff5c26fe67ff9baefec2556a6b;p=gcc.git S/390: Set the preferred mode for float vectors gcc/ChangeLog: 2017-09-26 Andreas Krebbel * config/s390/s390.c (s390_preferred_simd_mode): Return V4SFmode for SFmode. From-SVN: r253196 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5ae094f5f27..92ed88db38f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-09-26 Andreas Krebbel + + * config/s390/s390.c (s390_preferred_simd_mode): Return V4SFmode + for SFmode. + 2017-09-26 Andreas Krebbel * config/s390/vector.md ("vec_unpacks_low_v16qi"): Rename to diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index e3fafa2a642..0ceeef47ec3 100644 --- a/gcc/config/s390/s390.c +++ b/gcc/config/s390/s390.c @@ -15859,6 +15859,14 @@ s390_atomic_assign_expand_fenv (tree *hold, tree *clear, tree *update) static machine_mode s390_preferred_simd_mode (scalar_mode mode) { + if (TARGET_VXE) + switch (mode) + { + case E_SFmode: + return V4SFmode; + default:; + } + if (TARGET_VX) switch (mode) {