[PATCH] D46917: Comparison and Unary Operations for Fixed Point Types

Leonard Chan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 15 16:39:19 PDT 2018


leonardchan created this revision.
leonardchan added reviewers: phosek, mcgrathr.
leonardchan added a project: clang.

This patch contains logic and tests for different unary and comparison operations on fixed point types, and casting between integers and fixed point types.

The operations are `==`, `!=`, `>`, `<`, `>=`, `<=`, `!`, `+`, `-`, `++`, and `--`.

`~` is not a supported operation on fixed point types.

This is a parent of https://reviews.llvm.org/D46915


Repository:
  rC Clang

https://reviews.llvm.org/D46917

Files:
  lib/CodeGen/CGExprScalar.cpp
  lib/Sema/SemaExpr.cpp
  test/Frontend/fixed_point_declarations.c
  test/Frontend/fixed_point_validation.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46917.146961.patch
Type: text/x-patch
Size: 12746 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180515/4affe073/attachment.bin>


More information about the cfe-commits mailing list