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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Same issue for (_Float16) (__bf16) _Float_16-a in

    /* In addition to the cases of two conversions in a row
       handled below, if we are converting something to its own
       type via an object of identical or wider precision, neither
       conversion is needed.  */
    (if (((GIMPLE && useless_type_conversion_p (type, inside_type))
          || (GENERIC
              && TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (inside_type)))
         && (((inter_int || inter_ptr) && final_int)
             || (inter_float && final_float))
         && inter_prec >= final_prec
         && (! is_vec
             || supportable_convert_operation (ocvt, type, TREE_TYPE (@0))))
     (ocvt @0))

Reply via email to