Commit 8644f49f by Jim Wilson Committed by Kyrylo Tkachov

[ARM] PR target/65932: stop changing signedness in PROMOTE_MODE

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
parent e8449dec
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> 2016-02-04 Christian Bruel <christian.bruel@st.com>
* config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo. * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
......
...@@ -540,16 +540,10 @@ extern int arm_arch_crc; ...@@ -540,16 +540,10 @@ extern int arm_arch_crc;
type, but kept valid in the wider mode. The signedness of the type, but kept valid in the wider mode. The signedness of the
extension may differ from that of the type. */ 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) \ #define PROMOTE_MODE(MODE, UNSIGNEDP, TYPE) \
if (GET_MODE_CLASS (MODE) == MODE_INT \ if (GET_MODE_CLASS (MODE) == MODE_INT \
&& GET_MODE_SIZE (MODE) < 4) \ && GET_MODE_SIZE (MODE) < 4) \
{ \ { \
if (MODE == QImode) \
UNSIGNEDP = 1; \
else if (MODE == HImode) \
UNSIGNEDP = 1; \
(MODE) = SImode; \ (MODE) = SImode; \
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment