Commit a4876725 by Adam Nemet Committed by Adam Nemet

combine.c (gen_lowpart_or_truncate): Call simplify_gen_unary(TRUNCATE, ...)…

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
parent 4f258c29
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> 2006-02-24 Diego Novillo <dnovillo@redhat.com>
* doc/invoke.texi: Move -fopenmp description to "Options for * doc/invoke.texi: Move -fopenmp description to "Options for
......
...@@ -6777,7 +6777,7 @@ gen_lowpart_or_truncate (enum machine_mode mode, rtx x) ...@@ -6777,7 +6777,7 @@ gen_lowpart_or_truncate (enum machine_mode mode, rtx x)
|| (REG_P (x) && reg_truncated_to_mode (mode, x))) || (REG_P (x) && reg_truncated_to_mode (mode, x)))
return gen_lowpart (mode, x); return gen_lowpart (mode, x);
else 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 /* See if X can be simplified knowing that we will only refer to it in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment