John David Anglin - [committed] Fix 64-bit muldi3 expander in pa.md (original) (raw)
This is the mail archive of the gcc-patches@gcc.gnu.orgmailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
- From: "John David Anglin"
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 24 Feb 2007 16:00:17 -0500 (EST)
- Subject: [committed] Fix 64-bit muldi3 expander in pa.md
The enclosed changed fixes the 64-bit muldi3 expander in pa.md. The umulsidi3 insn can't handle SUBREGs.
Tested on hppa64-hp-hpux11.11. Committed to trunk and 4.2 branch.
Dave
J. David Anglin dave.anglin@nrc-cnrc.gc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2007-02-24 John David Anglin dave.anglin@nrc-cnrc.gc.ca
* pa.md (muldi3): Force subregs to registers in 64-bit expander.
Index: config/pa/pa.md
--- config/pa/pa.md (revision 122182) +++ config/pa/pa.md (working copy) @@ -5771,10 +5771,10 @@ GEN_INT (32))); emit_move_insn (op2shifted, gen_rtx_LSHIFTRT (DImode, operands[2], GEN_INT (32)));
- op1r = gen_rtx_SUBREG (SImode, operands[1], 4);
- op2r = gen_rtx_SUBREG (SImode, operands[2], 4);
- op1l = gen_rtx_SUBREG (SImode, op1shifted, 4);
- op2l = gen_rtx_SUBREG (SImode, op2shifted, 4);
op1r = force_reg (SImode, gen_rtx_SUBREG (SImode, operands[1], 4));
op2r = force_reg (SImode, gen_rtx_SUBREG (SImode, operands[2], 4));
op1l = force_reg (SImode, gen_rtx_SUBREG (SImode, op1shifted, 4));
op2l = force_reg (SImode, gen_rtx_SUBREG (SImode, op2shifted, 4));
/* Emit multiplies for the cross products. */ emit_insn (gen_umulsidi3 (cross_product1, op2r, op1l));
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |