gcc/libgcc
Georg-Johann Lay 0237179843 re PR target/57516 ([avr] Incorrect fixed-point rounding result in the overflow case)
gcc/
	PR target/57516
	* config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
	* config/avr/avr.md (adjust_len): Add `round'.
	* config/avr/avr-protos.h (avr_out_round): New prototype.
	(avr_out_plus): Add `out_label' argument.
	* config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
	(avr_out_plus): Pass down `out_label' to avr_out_plus_1.
	Handle the case where `insn' is just a pattern.
	(avr_out_bitop): Handle the case where `insn' is just a pattern.
	(avr_out_round): New function.
	(avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.

libgcc/
	PR target/57516
	* config/avr/lib1funcs-fixed.S (__roundqq3, __rounduqq3)
	(__round_s2_const, __round_u2_const)
	(__round_s4_const, __round_u4_const, __round_x8):
	Saturate result if addition result cannot be represented.

gcc/testsuite/
	PR target/57516
	* gcc.target/avr/torture/builtins-4-roundfx.c (test2hr, test2k):
	Adjust to corrected rounding.

From-SVN: r201051
2013-07-19 11:10:08 +00:00
..
config re PR target/57516 ([avr] Incorrect fixed-point rounding result in the overflow case) 2013-07-19 11:10:08 +00:00
soft-fp re PR other/53317 (Conversion from __int128 to __float128) 2013-06-21 20:08:01 +01:00
ChangeLog re PR target/57516 ([avr] Incorrect fixed-point rounding result in the overflow case) 2013-07-19 11:10:08 +00:00
config.host * config.host (powerpc-*-eabispe*): Add t-fdpbit to tmake_file. 2013-07-09 21:31:09 +00:00
config.in Use i386-cpuinfo.c on all i386 targets 2012-05-10 08:51:39 +00:00
configure config.host: Add support for cygwin x64 target. 2013-03-27 22:59:10 +01:00
configure.ac gthr.m4: New. 2012-10-15 13:10:30 +00:00
crtstuff.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
dfp-bit.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
dfp-bit.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
divmod.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
empty.mk Makefile.def (target_modules): Add libgcc. 2007-01-04 04:22:37 +00:00
emutls.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
enable-execute-stack-empty.c enable-execute-stack-empty.c (__enable_execute_stack): Add prototype. 2011-06-22 13:20:07 +02:00
enable-execute-stack-mprotect.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
fixed-bit.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
fixed-bit.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
fixed-obj.mk Makefile.in (fixed-funcs,fixed-conv-funcs): filter-out LIB2FUNCS_EXCLUDE before adding them to libgcc-objects, libgcc-s-objects. 2012-08-23 15:41:03 +00:00
floatunsidf.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
floatunsisf.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
floatunsitf.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
floatunsixf.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
fp-bit.c fp-bit.c (unpack_d, pack_d): Properly preserve and restore a NaN's payload. 2013-05-06 10:23:02 +02:00
fp-bit.h fp-bit.c (unpack_d, pack_d): Properly preserve and restore a NaN's payload. 2013-05-06 10:23:02 +02:00
gbl-ctors.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
gen-fixed.sh fixed-obj.mk: New file to support fine-grain fixed-point functions. 2007-09-17 22:18:13 +00:00
generic-morestack-thread.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
generic-morestack.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
generic-morestack.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
gstdint.h dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined. 2008-06-11 00:43:09 +01:00
gthr-posix.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
gthr-single.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
gthr.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
libgcc2.c libgcc2.c: Don't include <limits.h>. 2013-07-15 18:33:06 +00:00
libgcc2.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
libgcc-std.ver.in Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
libgcov.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
longlong.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
Makefile.in Makefile.in (clean, distclean): Remove auto-target.h and stamp-h correctly. 2013-06-25 08:02:11 +00:00
memcmp.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
memcpy.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
memmove.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
memset.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
mkheader.sh Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
mkmap-flat.awk Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
mkmap-symver.awk Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
shared-object.mk shared-object.mk (c_flags-$o): Save c_flags. 2011-06-21 14:26:13 +00:00
siditi-object.mk Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
static-object.mk Makefile.in (vis_hide, [...]): Do not make definitions depend on --enable-shared. 2012-08-22 09:36:23 +01:00
sync.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
udivmod.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
udivmodsi4.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-arm-common.inc Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-c.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-compat.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-compat.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-dw2-fde-compat.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-dw2-fde-dip.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-dw2-fde.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-dw2-fde.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-dw2.c re PR target/49146 (segv from libgcc_s when raising an exception, or unwinding stack with backtrace with ms_abi) 2013-05-17 08:27:37 -07:00
unwind-dw2.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-generic.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-pe.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-seh.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-sjlj.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind.inc Update copyright in libgcc. 2013-02-04 19:06:20 +00:00