]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[ARM] PR target/65932: stop changing signedness in PROMOTE_MODE
authorJim Wilson <jim.wilson@linaro.org>
Thu, 4 Feb 2016 09:50:12 +0000 (09:50 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Thu, 4 Feb 2016 09:50:12 +0000 (09:50 +0000)
2016-02-04  Jim Wilson  <jim.wilson@linaro.org>

PR target/65932
PR target/67714
* config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
HImode.

From-SVN: r233130

gcc/ChangeLog
gcc/config/arm/arm.h

index 390c0bf74d471f76ba5212da2e58d677edcf9a76..4146241e9a3dde1aa8c07b882da570c7f0708a7b 100644 (file)
@@ -1,3 +1,10 @@
+2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
+
+       PR target/65932
+       PR target/67714
+       * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
+       HImode.
+
 2016-02-04  Christian Bruel  <christian.bruel@st.com>
 
        * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
index a32ae4c6aaae7f982511d07827725870a39c15c9..d755b729e33d9a19269d2b0f6ab5231dbf3bb552 100644 (file)
@@ -540,16 +540,10 @@ extern int arm_arch_crc;
    type, but kept valid in the wider mode.  The signedness of the
    extension may differ from that of the type.  */
 
-/* It is far faster to zero extend chars than to sign extend them */
-
 #define PROMOTE_MODE(MODE, UNSIGNEDP, TYPE)    \
   if (GET_MODE_CLASS (MODE) == MODE_INT                \
       && GET_MODE_SIZE (MODE) < 4)             \
     {                                          \
-      if (MODE == QImode)                      \
-       UNSIGNEDP = 1;                          \
-      else if (MODE == HImode)                 \
-       UNSIGNEDP = 1;                          \
       (MODE) = SImode;                         \
     }