https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101132

--- Comment #3 from Xi Ruoyao <xry111 at mengyan1223 dot wang> ---
Another testcase (produced by cvise from mesa-21.1.3):

unsigned float3_to_rgb9e5_gc_0;
util_format_r9g9b9e5_float_pack_rgba_float_dst_row_bc_0;
util_format_r9g9b9e5_float_pack_rgba_float_dst_row() {
  unsigned x;
  char *dst = util_format_r9g9b9e5_float_pack_rgba_float_dst_row;
  for (; x; x += 1) {
    int __trans_tmp_1, maxrgb_0;
    struct {
      unsigned u
    } f, max;
    if (f.u > 800000)
      __trans_tmp_1 = 0;
    else
      __trans_tmp_1 = max.u;
    maxrgb_0 = __trans_tmp_1 > float3_to_rgb9e5_gc_0
                   ?: util_format_r9g9b9e5_float_pack_rgba_float_dst_row_bc_0;
    *dst = maxrgb_0;
    dst += 4;
  }
}

Reply via email to