From 41067f07b9eb7bff5c26fe67ff9baefec2556a6b Mon Sep 17 00:00:00 2001 From: Andreas Krebbel Date: Tue, 26 Sep 2017 10:35:00 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/s390/s390.c | 8 ++++++++ 2 files changed, 13 insertions(+) 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) { -- 2.30.2