Improve generated code for various libgcc2.c routines
authorStefan Kanthak <stefan.kanthak@nexgo.de>
Tue, 10 Nov 2020 15:22:28 +0000 (08:22 -0700)
committerJeff Law <law@redhat.com>
Tue, 10 Nov 2020 15:29:46 +0000 (08:29 -0700)
commitebc4cd54b2378147d7041fd05ff03bd0e1a61e48
tree4b2e2cf268b9af0c664bb895ce4d461ede62f282
parentcf392dbdf17e38026f8e3c0e9af7f5b87f63be56
Improve generated code for various libgcc2.c routines

libgcc/

* libgcc2.c (__addvSI3): Use overflow builtins.
(__addvsi3, __addvDI3 ,__subvSI3, __subvsi3): Likewise.
(__subvDI3 __mulvSI3, __mulvsi3, __negvSI2): Likewise.
(__negvsi2, __negvDI2): Likewise.
(__cmpdi2, __ucmpdi2): Adjust implementation to improve
generated code.
* libgcc2.h (__ucmpdi2): Adjust prototype.
libgcc/libgcc2.c
libgcc/libgcc2.h