[all-commits] [llvm/llvm-project] fefa34: [CodeGen] Use the common semantic for fixed-point ...

Bevin Hansson via All-commits all-commits at lists.llvm.org
Mon Jun 29 07:23:37 PDT 2020


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

  Changed paths:
    M clang/lib/CodeGen/CGExprScalar.cpp
    M clang/test/Frontend/fixed_point_add.c
    M clang/test/Frontend/fixed_point_div.c
    M clang/test/Frontend/fixed_point_mul.c
    M clang/test/Frontend/fixed_point_sub.c

  Log Message:
  -----------
  [CodeGen] Use the common semantic for fixed-point codegen, not the result semantic.

Summary:
Using the result semantic is wrong in some cases, such as
unsigned fixed-point + signed integer. In this case, the
result semantic is unsigned and the common semantic is
signed.

Reviewers: leonardchan

Subscribers: cfe-commits

Tags: #clang

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




More information about the All-commits mailing list