Re: [PATCH] vect-patterns: Fix up vect_widened_op_tree [PR108692]

2023-02-08 Thread Richard Sandiford via Gcc-patches
Jakub Jelinek writes: > Hi! > > The following testcase is miscompiled on aarch64-linux since r11-5160. > Given >[local count: 955630225]: > # i_22 = PHI > # r_23 = PHI > ... > a.0_5 = (unsigned char) a_15; > _6 = (int) a.0_5; > b.1_7 = (unsigned char) b_17; > _8 = (int) b.1_7; >

[PATCH] vect-patterns: Fix up vect_widened_op_tree [PR108692]

2023-02-08 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase is miscompiled on aarch64-linux since r11-5160. Given [local count: 955630225]: # i_22 = PHI # r_23 = PHI ... a.0_5 = (unsigned char) a_15; _6 = (int) a.0_5; b.1_7 = (unsigned char) b_17; _8 = (int) b.1_7; c_18 = _6 - _8; _9 = ABS_EXPR ; r_19 = _9