combine.c (gen_lowpart_or_truncate): Call simplify_gen_unary(TRUNCATE, ...) instead of gen_rtx_TRUNCATE.

* combine.c (gen_lowpart_or_truncate): Call
	simplify_gen_unary(TRUNCATE, ...) instead of gen_rtx_TRUNCATE.

From-SVN: r111437
This commit is contained in:
Adam Nemet 2006-02-25 01:35:08 +00:00 committed by Adam Nemet
parent 4f258c2997
commit a487672562
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2006-02-24 Adam Nemet <anemet@caviumnetworks.com>
* combine.c (gen_lowpart_or_truncate): Call
simplify_gen_unary(TRUNCATE, ...) instead of gen_rtx_TRUNCATE.
2006-02-24 Diego Novillo <dnovillo@redhat.com>
* doc/invoke.texi: Move -fopenmp description to "Options for

View file

@ -6777,7 +6777,7 @@ gen_lowpart_or_truncate (enum machine_mode mode, rtx x)
|| (REG_P (x) && reg_truncated_to_mode (mode, x)))
return gen_lowpart (mode, x);
else
return gen_rtx_TRUNCATE (mode, x);
return simplify_gen_unary (TRUNCATE, mode, x, GET_MODE (x));
}
/* See if X can be simplified knowing that we will only refer to it in