]> git.ipfire.org Git - thirdparty/gcc.git/commit
a68: add TEST operator for bits to expanded prelude master trunk
authorJose E. Marchesi <jemarch@gnu.org>
Sat, 31 Jan 2026 17:34:11 +0000 (18:34 +0100)
committerJose E. Marchesi <jemarch@gnu.org>
Sat, 31 Jan 2026 17:41:04 +0000 (18:41 +0100)
commiteabf7e0f72d022e70fca74c96e0963d6d869cb04
tree24ec99c976e6cb188477a114f9802bb31ddbc012
parentfecf1412b32dd7037c9973bdbca32bb1787c35a9
a68: add TEST operator for bits to expanded prelude

This patch adds support for a TEST operator for L bits.  Documentation
and tests are included.

Signed-off-by: Jose E. Marchesi <jemarch@gnu.org>
gcc/algol68/ChangeLog

* a68.h: Prototypes for a68_bits_test and a68_lower_test3.
* a68-low-bits.cc (a68_bits_test): New function.
* a68-low-prelude.cc (a68_lower_test3): Likewise.
* a68-parser-prelude.cc (gnu_prelude): Declare TEST operators and
their priority.
* ga68.texi (Extended bits operators): New section.

gcc/testsuite/ChangeLog

* algol68/execute/bits-test-1.a68: New test.
gcc/algol68/a68-low-bits.cc
gcc/algol68/a68-low-prelude.cc
gcc/algol68/a68-parser-prelude.cc
gcc/algol68/a68.h
gcc/algol68/ga68.texi
gcc/testsuite/algol68/execute/bits-test-1.a68 [new file with mode: 0644]