Skip to content

Commit

Permalink
* reg-stack.c (subst_stack_regs_pat): Use replace_reg to swap
Browse files Browse the repository at this point in the history
	operands.

	* i386.c (ix86_expand_branch): Mode of comparison in
	IF_THEN_ELSE is VOIDmode.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35458 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
hubicka committed Aug 3, 2000
1 parent e5726d6 commit 73ca2d3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
Thu Aug 3 20:32:25 MET DST 2000 Jan Hubicka <jh@suse.cz>

* reg-stack.c (subst_stack_regs_pat): Use replace_reg to swap
operands.

* i386.c (ix86_expand_branch): Mode of comparison in
IF_THEN_ELSE is VOIDmode.

Thu Aug 3 10:05:53 2000 Akiko Matsushita <matusita@sra.co.jp>

* gengenrtl.c, rtl.c: Avoid #elif.
Expand Down
2 changes: 1 addition & 1 deletion gcc/config/i386/i386.c
Original file line number Diff line number Diff line change
Expand Up @@ -4897,7 +4897,7 @@ ix86_expand_branch (code, label)
code = ix86_prepare_fp_compare_args (code, &ix86_compare_op0,
&ix86_compare_op1);

tmp = gen_rtx_fmt_ee (code, ix86_fp_compare_mode (code),
tmp = gen_rtx_fmt_ee (code, VOIDmode,
ix86_compare_op0, ix86_compare_op1);
tmp = gen_rtx_IF_THEN_ELSE (VOIDmode, tmp,
gen_rtx_LABEL_REF (VOIDmode, label),
Expand Down
6 changes: 3 additions & 3 deletions gcc/reg-stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -1637,9 +1637,9 @@ subst_stack_regs_pat (insn, regstack, pat)
&& REG_P (*src1) && REG_P (*src2)
&& REGNO (*src1) != REGNO (*dest))
{
rtx tmp = *src1;
*src1 = *src2;
*src2 = tmp;
int tmp = REGNO (*src1);
replace_reg (src1, REGNO (*src2));
replace_reg (src2, tmp);
}
break;

Expand Down

0 comments on commit 73ca2d3

Please sign in to comment.