libgcc: Fix BIL_TYPE_SIZE == 32 support in _BitInt <-> dfp support
commitb2684e5512b097fbaa63dd18c35f8af4b351920c
authorJakub Jelinek <jakub@redhat.com>
Sat, 10 Feb 2024 11:50:52 +0000 (10 12:50 +0100)
committerJakub Jelinek <jakub@redhat.com>
Sat, 10 Feb 2024 11:50:52 +0000 (10 12:50 +0100)
tree518c686730121bc0969d28916fd46def4d925ab4
parent39920447f876128ff7942a9cd931021800865894
libgcc: Fix BIL_TYPE_SIZE == 32 support in _BitInt <-> dfp support

I've tried last night to enable _BitInt support for i?86-linux, and
a few spots in libgcc emitted -Wshift-count-overflow warnings and clearly
didn't do what it was supposed to do.

Fixed thusly.

2024-02-10  Jakub Jelinek  <jakub@redhat.com>

* soft-fp/fixddbitint.c (__bid_fixddbitint): Fix up
BIL_TYPE_SIZE == 32 shifts.
* soft-fp/fixsdbitint.c (__bid_fixsdbitint): Likewise.
* soft-fp/fixtdbitint.c (__bid_fixtdbitint): Likewise.
* soft-fp/floatbitintdd.c (__bid_floatbitintdd): Likewise.
* soft-fp/floatbitinttd.c (__bid_floatbitinttd): Likewise.
libgcc/soft-fp/fixddbitint.c
libgcc/soft-fp/fixsdbitint.c
libgcc/soft-fp/fixtdbitint.c
libgcc/soft-fp/floatbitintdd.c
libgcc/soft-fp/floatbitinttd.c