]> git.ipfire.org Git - thirdparty/gcc.git/commit
Implement IANY, IALL and IPARITY for unsigned.
authorThomas Koenig <tkoenig@gcc.gnu.org>
Tue, 24 Sep 2024 20:53:59 +0000 (22:53 +0200)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Tue, 24 Sep 2024 20:53:59 +0000 (22:53 +0200)
commitfbeb1a965d85492e2f6f3adf913b90d005151b00
tree7ce9117e898fac823247e05a9a7b2fd8f225fb17
parent1762b7f89eb9d8a1f150ab294344e945c0870399
Implement IANY, IALL and IPARITY for unsigned.

gcc/fortran/ChangeLog:

* check.cc (gfc_check_transf_bit_intrins): Handle unsigned.
* gfortran.texi: Docment IANY, IALL and IPARITY for unsigned.
* iresolve.cc (gfc_resolve_iall): Set flag to use integer
if type is BT_UNSIGNED.
(gfc_resolve_iany): Likewise.
(gfc_resolve_iparity): Likewise.
* simplify.cc (do_bit_and): Adjust asserts for BT_UNSIGNED.
(do_bit_ior): Likewise.
(do_bit_xor): Likewise

gcc/testsuite/ChangeLog:

* gfortran.dg/unsigned_29.f90: New test.
gcc/fortran/check.cc
gcc/fortran/gfortran.texi
gcc/fortran/iresolve.cc
gcc/fortran/simplify.cc
gcc/testsuite/gfortran.dg/unsigned_29.f90 [new file with mode: 0644]