arm.c (arm_gen_constant): Use SImode when preparing operands for gen_extzv_t2.

* arm.c (arm_gen_constant): Use SImode when preparing operands for
	gen_extzv_t2.

From-SVN: r190143
This commit is contained in:
Richard Earnshaw 2012-08-04 14:02:56 +00:00 committed by Richard Earnshaw
parent 75235f0597
commit 6f34864a43
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2012-08-04 Richard Earnshaw <rearnsha@arm.com>
* arm.c (arm_gen_constant): Use SImode when preparing operands for
gen_extzv_t2.
2012-08-04 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.h (QI_REGNO_P): New define.

View File

@ -2999,8 +2999,8 @@ arm_gen_constant (enum rtx_code code, enum machine_mode mode, rtx cond,
/* Extz only supports SImode, but we can coerce the operands
into that mode. */
emit_constant_insn (cond,
gen_extzv_t2 (gen_lowpart (mode, target),
gen_lowpart (mode, source),
gen_extzv_t2 (gen_lowpart (SImode, target),
gen_lowpart (SImode, source),
GEN_INT (i), const0_rtx));
}