[PATCH] D46927: Augmented Assignment for Fixed Point Types
Leonard Chan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 15 20:14:38 PDT 2018
leonardchan created this revision.
leonardchan added reviewers: phosek, mcgrathr, jakehehrlich.
leonardchan added a project: clang.
This patch contains the changes and tests for augmented assignments for primary fixed point types.
s_accum = 7.5hk;
s_accum2 = 2.0hk;
s_accum += s_accum2;
assert(s_accum == 9.5hk);
s_accum += 2.5k;
assert(s_accum == 12);
This is a parent of https://reviews.llvm.org/D46926
Repository:
rC Clang
https://reviews.llvm.org/D46927
Files:
include/clang/AST/Type.h
lib/AST/Type.cpp
lib/CodeGen/CGExprScalar.cpp
lib/Sema/SemaExpr.cpp
test/Frontend/fixed_point_validation.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46927.146989.patch
Type: text/x-patch
Size: 9812 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180516/3fec92d3/attachment.bin>
More information about the cfe-commits
mailing list