[all-commits] [llvm/llvm-project] a25889: Fix convertBFloatAPFloatToAPInt for NaN/Inf values

Diego Caballero via All-commits all-commits at lists.llvm.org
Fri Jun 5 17:30:28 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a2588948febccfed5ba074fc32dcb093484fa5c8
      https://github.com/llvm/llvm-project/commit/a2588948febccfed5ba074fc32dcb093484fa5c8
  Author: Diego Caballero <diego.caballero at intel.com>
  Date:   2020-06-05 (Fri, 05 Jun 2020)

  Changed paths:
    M llvm/lib/Support/APFloat.cpp
    M llvm/test/Assembler/bfloat.ll

  Log Message:
  -----------
  Fix convertBFloatAPFloatToAPInt for NaN/Inf values

Bfloat type has an 8-bit exponent so the exponent of NaN/Inf numbers
must be 0xff instead of 0x1f. This is probably a copy-paste mistake
from the half float type.

Reviewed By: lattner

Differential Revision: https://reviews.llvm.org/D81302




More information about the All-commits mailing list