[PATCH] D46990: [Fixed Point Arithmetic] Validation Test for Saturated Multiplication
Leonard Chan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 16 16:52:26 PDT 2018
leonardchan created this revision.
leonardchan added reviewers: phosek, mcgrathr, jakehehrlich.
leonardchan added a project: clang.
This patch contains changes for multiplication on saturated _Fract types.
Since we already upcast the underlying integer for the fixed point type, we can do a simple check to see if the resulting value is larger or smaller than the max or min for the fixed point types.
This is a child of https://reviews.llvm.org/D46987
Repository:
rC Clang
https://reviews.llvm.org/D46990
Files:
lib/CodeGen/CGExprScalar.cpp
test/Frontend/fixed_point_all_builtin_operations.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46990.147215.patch
Type: text/x-patch
Size: 5318 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180516/9ec96357/attachment-0001.bin>
More information about the cfe-commits
mailing list