From: rsandifo Date: Mon, 22 Sep 2014 07:38:46 +0000 (+0000) Subject: gcc/ X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01707b82b5b60b248638a8111a733714e3ceebb0;p=thirdparty%2Fgcc.git gcc/ * config/i386/i386.c (ix86_cannot_change_mode_class): Remove GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215450 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5f6d4a354505..e4ca9792217c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-09-22 Richard Sandiford + + * config/i386/i386.c (ix86_cannot_change_mode_class): Remove + GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test. + 2014-09-22 Richard Sandiford * hard-reg-set.h: Include hash-table.h. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index c9324367c2b0..ed3d85eba5a6 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -37522,13 +37522,6 @@ ix86_cannot_change_mode_class (enum machine_mode from, enum machine_mode to, the vec_dupv4hi pattern. */ if (GET_MODE_SIZE (from) < 4) return true; - - /* Vector registers do not support subreg with nonzero offsets, which - are otherwise valid for integer registers. Since we can't see - whether we have a nonzero offset from here, prohibit all - nonparadoxical subregs changing size. */ - if (GET_MODE_SIZE (to) < GET_MODE_SIZE (from)) - return true; } return false;