aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index d6f1079..443b429 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -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