[Bug middle-end/48580] missed optimization: integer overflow checks
svfuerst at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Apr 13 17:44:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48580
Steven Fuerst <svfuerst at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |svfuerst at gmail dot com
--- Comment #10 from Steven Fuerst <svfuerst at gmail dot com> 2011-04-13 17:44:22 UTC ---
There are C and x86 assembly code fragments showing how to do signed and
unsigned saturating arithmetic here:
http://locklessinc.com/articles/sat_arithmetic/
Although, if there were new intrinsics that allowed direct access to the
overflow and carry flags from arithmetic instructions, they would be quite
useful.
More information about the Gcc-bugs
mailing list