diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-01-09 13:43:14 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-01-09 13:43:14 +0000 |
commit | 70b6a6e8099b4a731dfd837f39c63b94490c6e89 (patch) | |
tree | 335f0f58bcbe80939b5fe9de9d9d309a4d8cb6a7 /gcc/dojump.c | |
parent | 6a4f20ec75e4f46f1171d15987bfd35643736348 (diff) | |
download | gcc-70b6a6e8099b4a731dfd837f39c63b94490c6e89.tar.gz |
PR middle-end/38347
* dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
GET_MODE (op0) in operand_subword_force calls.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143204 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dojump.c')
-rw-r--r-- | gcc/dojump.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/dojump.c b/gcc/dojump.c index 849f69f07cd..060eb51e77e 100644 --- a/gcc/dojump.c +++ b/gcc/dojump.c @@ -1,6 +1,6 @@ /* Convert tree expression to rtl instructions, for GNU compiler. Copyright (C) 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 + 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. This file is part of GCC. @@ -675,10 +675,10 @@ do_jump_by_parts_zero_rtx (enum machine_mode mode, rtx op0, be slower, but that's highly unlikely. */ part = gen_reg_rtx (word_mode); - emit_move_insn (part, operand_subword_force (op0, 0, GET_MODE (op0))); + emit_move_insn (part, operand_subword_force (op0, 0, mode)); for (i = 1; i < nwords && part != 0; i++) part = expand_binop (word_mode, ior_optab, part, - operand_subword_force (op0, i, GET_MODE (op0)), + operand_subword_force (op0, i, mode), part, 1, OPTAB_WIDEN); if (part != 0) @@ -694,7 +694,7 @@ do_jump_by_parts_zero_rtx (enum machine_mode mode, rtx op0, drop_through_label = if_false_label = gen_label_rtx (); for (i = 0; i < nwords; i++) - do_compare_rtx_and_jump (operand_subword_force (op0, i, GET_MODE (op0)), + do_compare_rtx_and_jump (operand_subword_force (op0, i, mode), const0_rtx, EQ, 1, word_mode, NULL_RTX, if_false_label, NULL_RTX); |