OSDN Git Service

* combine.c (simplify_shift_const_1): Use gen_lowpart_or_truncate
authornemet <nemet@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Mar 2006 23:05:50 +0000 (23:05 +0000)
committernemet <nemet@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Mar 2006 23:05:50 +0000 (23:05 +0000)
instead of gen_lowpart.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111911 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/combine.c

index 32155a4..d545ac4 100644 (file)
@@ -1,3 +1,8 @@
+2006-03-09  Adam Nemet  <anemet@caviumnetworks.com>
+
+       * combine.c (simplify_shift_const_1): Use gen_lowpart_or_truncate
+       instead of gen_lowpart.
+
 2006-03-09  Richard Sandiford  <richard@codesourcery.com>
 
        * config/mips/mips-protos.h (mips_output_conditional_branch): Change
index 74b01cb..04a3b04 100644 (file)
@@ -9199,7 +9199,7 @@ simplify_shift_const_1 (enum rtx_code code, enum machine_mode result_mode,
                                GET_MODE_MASK (result_mode) >> orig_count);
 
   /* Do the remainder of the processing in RESULT_MODE.  */
-  x = gen_lowpart (result_mode, x);
+  x = gen_lowpart_or_truncate (result_mode, x);
 
   /* If COMPLEMENT_P is set, we have to complement X before doing the outer
      operation.  */