[all-commits] [llvm/llvm-project] 33bae9: [AST] Fix handling of some edge cases in fixed-poi...

Bevin Hansson via All-commits all-commits at lists.llvm.org
Tue Jun 30 04:48:04 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 33bae9c265486cd37e0612711a863f0a4b865a26
      https://github.com/llvm/llvm-project/commit/33bae9c265486cd37e0612711a863f0a4b865a26
  Author: Bevin Hansson <bevin.hansson at ericsson.com>
  Date:   2020-06-30 (Tue, 30 Jun 2020)

  Changed paths:
    M clang/lib/AST/ExprConstant.cpp
    M clang/lib/Basic/FixedPoint.cpp
    M clang/test/Frontend/fixed_point_div.c
    M clang/test/Frontend/fixed_point_errors.c

  Log Message:
  -----------
  [AST] Fix handling of some edge cases in fixed-point division.

Division by zero was not being handled, and division of
-EPSILON / MAX did not perform rounding correctly.




More information about the All-commits mailing list