aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/cil32/remove-convs.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/cil32/remove-convs.c')
-rw-r--r--gcc/config/cil32/remove-convs.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/config/cil32/remove-convs.c b/gcc/config/cil32/remove-convs.c
index 9aa52b6ee33..6bc1a67fab1 100644
--- a/gcc/config/cil32/remove-convs.c
+++ b/gcc/config/cil32/remove-convs.c
@@ -170,8 +170,11 @@ fold_conversion (enum cil_opcode op, cil_type_t type)
break;
case CIL_CONV_I2:
- if (type == CIL_UNSIGNED_INT8)
- return true;
+ if ((type == CIL_INT8) || (type == CIL_UNSIGNED_INT8)
+ || (type == CIL_INT16))
+ {
+ return true;
+ }
break;