gcc/libgcc/config
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
..
aarch64 re PR other/53317 (Conversion from __int128 to __float128) 2013-06-21 20:08:01 +01:00
alpha Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
arm re PR other/53317 (Conversion from __int128 to __float128) 2013-06-21 20:08:01 +01:00
avr re PR target/57516 ([avr] Incorrect fixed-point rounding result in the overflow case) 2013-07-19 11:10:08 +00:00
bfin Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
c6x re PR other/53317 (Conversion from __int128 to __float128) 2013-06-21 20:08:01 +01:00
cr16 Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
cris Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
epiphany Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
fr30 Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
frv Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
h8300 Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
i386 re PR other/53317 (Conversion from __int128 to __float128) 2013-06-21 20:08:01 +01:00
ia64 re PR other/53317 (Conversion from __int128 to __float128) 2013-06-21 20:08:01 +01:00
iq2000 Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
libbid Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
lm32 re PR other/53317 (Conversion from __int128 to __float128) 2013-06-21 20:08:01 +01:00
m32c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
m32r Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
m68k Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
mcore Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
mep Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
microblaze Setup stack protection at entry. 2013-03-04 15:23:05 +00:00
mips mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900. 2013-06-16 19:31:24 +00:00
mmix Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
moxie re PR other/53317 (Conversion from __int128 to __float128) 2013-06-21 20:08:01 +01:00
pa Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
pdp11 Append to HOST_LIBGCC2_CFLAGS in libgcc 2011-11-07 17:14:32 +00:00
picochip Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
rl78 Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
rs6000 re PR other/53317 (Conversion from __int128 to __float128) 2013-06-21 20:08:01 +01:00
rx Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
s390 Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
score re PR other/53317 (Conversion from __int128 to __float128) 2013-06-21 20:08:01 +01:00
sh re PR target/6526 ([SH4] sdivsi3_i4 can clobber xd0/xd2) 2013-06-09 21:32:37 +00:00
sparc sol2-unwind.h (MD_FALLBACK_FRAME_STATE_FOR): Do not set fs->signal_frame for SIGFPE raised for IEEE-754 exceptions. 2013-05-28 13:52:50 +00:00
spu Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
stormy16 Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
tilegx re PR other/53317 (Conversion from __int128 to __float128) 2013-06-21 20:08:01 +01:00
tilepro re PR other/53317 (Conversion from __int128 to __float128) 2013-06-21 20:08:01 +01:00
v850 Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
vax Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
vms Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
xtensa Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
darwin-64.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
darwin-crt3.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
darwin-crt-tm.c re PR libitm/55693 (libitm.c++/eh-1.C execution test fails on darwin from r193271) 2013-02-11 23:30:10 +00:00
gmon-sol2.c gmon-sol2.c: Reindent. 2011-06-01 14:46:24 +00:00
gthr-lynx.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
gthr-rtems.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
gthr-vxworks.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
libgcc-glibc.ver Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
libgcc-libsystem.ver Move shlib support to toplevel libgcc 2011-11-02 10:49:46 +00:00
no-sfp-machine.h soft-fp: Move to ../libgcc. 2011-08-05 15:13:48 +00:00
no-unwind.h linux.h (MD_UNWIND_SUPPORT): Remove. 2011-06-03 18:30:39 +00:00
t-crtfm Remove obsolete Tru64 UNIX V5.1B support 2012-03-12 15:35:56 +00:00
t-crtstuff-pic Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
t-darwin * config/t-darwin (crt3.0): Remove work-around for fixed PR26840. 2012-07-14 13:50:59 +00:00
t-dfprules dfp-bit.c, dfp-bit.h: Move to ../libgcc. 2011-07-11 14:40:56 +00:00
t-eh-dw2-dip Makefile.in (UNWIND_H): Remove. 2011-08-05 14:37:48 +00:00
t-fdpbit Makefile.in (FPBIT_FUNCS, [...]): Remove. 2011-08-05 14:53:09 +00:00
t-fixedpoint-gnu-prefix Makefile.in (LIBGCC_VER_FIXEDPOINT_GNU_PREFIX): New. 2011-08-01 12:02:45 +00:00
t-fpbit Makefile.in (FPBIT_FUNCS, [...]): Remove. 2011-08-05 14:53:09 +00:00
t-freebsd-thread Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
t-gnu-prefix Makefile.in (LIBGCC_VER_FIXEDPOINT_GNU_PREFIX): New. 2011-08-01 12:02:45 +00:00
t-libgcc-pic Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
t-libunwind Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
t-libunwind-elf Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
t-linux Move shlib support to toplevel libgcc 2011-11-02 10:49:46 +00:00
t-openbsd-thread Append to HOST_LIBGCC2_CFLAGS in libgcc 2011-11-07 17:14:32 +00:00
t-rtems Consistently use t-rtems in libgcc 2011-11-07 17:12:33 +00:00
t-slibgcc Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
t-slibgcc-darwin Move shlib support to toplevel libgcc 2011-11-02 10:49:46 +00:00
t-slibgcc-elf-ver Move shlib support to toplevel libgcc 2011-11-02 10:49:46 +00:00
t-slibgcc-gld t-slibgcc-darwin: Move to ... 2011-06-01 14:39:17 +00:00
t-slibgcc-gld-nover Move shlib support to toplevel libgcc 2011-11-02 10:49:46 +00:00
t-slibgcc-hpux re PR other/55274 (gcc build hangs on HP-UX 11.11) 2013-04-06 18:22:09 +00:00
t-slibgcc-libgcc Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
t-slibgcc-nolc-override Move shlib support to toplevel libgcc 2011-11-02 10:49:46 +00:00
t-slibgcc-sld t-slibgcc-darwin: Move to ... 2011-06-01 14:39:17 +00:00
t-slibgcc-vms Move shlib support to toplevel libgcc 2011-11-02 10:49:46 +00:00
t-softfp Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
t-softfp-excl soft-fp: Move to ../libgcc. 2011-08-05 15:13:48 +00:00
t-softfp-sfdf soft-fp: Move to ../libgcc. 2011-08-05 15:13:48 +00:00
t-softfp-tf soft-fp: Move to ../libgcc. 2011-08-05 15:13:48 +00:00
t-sol2 Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
t-stack
t-tls
t-vxworks Append to HOST_LIBGCC2_CFLAGS in libgcc 2011-11-07 17:14:32 +00:00
unwind-dw2-fde-darwin.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
vxlib-tls.c 2013-03-20 Robert Mason <rbmj@verizon.net> 2013-03-20 22:01:25 +00:00
vxlib.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00