[all-commits] [llvm/llvm-project] 4086ea: clang/HIP: Fix broken implementations of __make_ma...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Thu Dec 22 04:09:20 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4086ea331cad827d74542e52a86b7d7933376e7b
      https://github.com/llvm/llvm-project/commit/4086ea331cad827d74542e52a86b7d7933376e7b
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2022-12-22 (Thu, 22 Dec 2022)

  Changed paths:
    M clang/lib/Headers/__clang_hip_math.h
    M clang/test/Headers/__clang_hip_math.hip

  Log Message:
  -----------
  clang/HIP: Fix broken implementations of __make_mantissa* functions

The optimizer was folding the entire function to return 0. This
meant to be checking the character content of the pointer is the
string terminator, not null.

Also just make null inputs undefined. My docs for nanf say the
behavior of the argument is unspecified and segfaults on my system.




More information about the All-commits mailing list