Hi. As seen in the PR, when doing switch convert linear transformation, one needs to first convert to unsigned type for constructor values. Patch survives regression tests and bootstrap on x86_64-linux-gnu. Ready for trunk? Thanks, Martin gcc/ChangeLog: 2019-01-08 Martin Liska PR tree-optimization/88753 * tree-switch-conversion.c (switch_conversion::build_one_array): Come up with local variable constructor. Convert first to type of constructor values. --- gcc/tree-switch-conversion.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)