[all-commits] [llvm/llvm-project] 9f9e9d: [flang] SET_EXPONENT(-0.0) should return -0.0

Pete Steinfeld via All-commits all-commits at lists.llvm.org
Thu Jul 7 12:44:24 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9f9e9d9cfc2e2f929c17de4a1065c0eb68e479c0
      https://github.com/llvm/llvm-project/commit/9f9e9d9cfc2e2f929c17de4a1065c0eb68e479c0
  Author: Peter Steinfeld <psteinfeld at nvidia.com>
  Date:   2022-07-07 (Thu, 07 Jul 2022)

  Changed paths:
    M flang/runtime/numeric.cpp

  Log Message:
  -----------
  [flang] SET_EXPONENT(-0.0) should return -0.0

Section 16.9.171 says:

If X has the value zero, the result has the same value as X

So if X is -0.0, SET_EXPONENT should return -0.0.

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




More information about the All-commits mailing list