diff options
author | Geoffrey Keating <geoffk@redhat.com> | 2001-07-20 03:59:19 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2001-07-20 03:59:19 +0000 |
commit | 038fb2bca9238d51d7176b576eb9ff2dfcea7b4e (patch) | |
tree | 1755cd9740d32788aee106ee033e8d4ac736f98f /gcc | |
parent | be672de8aefdbad33db28b2fa397bafde5c39e0c (diff) | |
download | gcc-038fb2bca9238d51d7176b576eb9ff2dfcea7b4e.zip gcc-038fb2bca9238d51d7176b576eb9ff2dfcea7b4e.tar.gz gcc-038fb2bca9238d51d7176b576eb9ff2dfcea7b4e.tar.bz2 |
ifcvt.c (noce_try_store_flag_constants): Correct order of parameters to trunc_int_for_mode.
* ifcvt.c (noce_try_store_flag_constants): Correct order
of parameters to trunc_int_for_mode.
From-SVN: r44181
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ifcvt.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 693d062..e9b400a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-07-19 Geoffrey Keating <geoffk@redhat.com> + + * ifcvt.c (noce_try_store_flag_constants): Correct order + of parameters to trunc_int_for_mode. + 2001-07-19 Mark Mitchell <mark@codesourcery.com> * reorg.c (fill_simple_delay_slots): If an instruction might throw diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index 92bb6b5..bdb44c4 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -651,7 +651,7 @@ noce_try_store_flag_constants (if_info) mode = GET_MODE (if_info->x); ifalse = INTVAL (if_info->a); itrue = INTVAL (if_info->b); - diff = trunc_int_for_mode (mode, itrue - ifalse); + diff = trunc_int_for_mode (itrue - ifalse, mode); can_reverse = (reversed_comparison_code (if_info->cond, if_info->jump) != UNKNOWN); @@ -682,7 +682,7 @@ noce_try_store_flag_constants (if_info) if (reversep) { tmp = itrue; itrue = ifalse; ifalse = tmp; - diff = trunc_int_for_mode (mode, -diff); + diff = trunc_int_for_mode (-diff, mode); } start_sequence (); |