]> granicus.if.org Git - clang/commit
[Fixed Point Arithmetic] Fixed Point Subtraction
authorLeonard Chan <leonardchan@google.com>
Wed, 16 Jan 2019 19:53:50 +0000 (19:53 +0000)
committerLeonard Chan <leonardchan@google.com>
Wed, 16 Jan 2019 19:53:50 +0000 (19:53 +0000)
commit6b961fe8684f1594ae5fb2c77e68d9960b3b5427
tree787a24155e9ce167cce5a704221b405c2e3178b8
parentbfe5a44dde6243818898e7cfada316d762c59742
[Fixed Point Arithmetic] Fixed Point Subtraction

This patch covers subtraction between fixed point types and other fixed point
types or integers, using the conversion rules described in 4.1.4 of N1169.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@351371 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExprScalar.cpp
test/Frontend/fixed_point_sub.c [new file with mode: 0644]