On 8/8/25 21:08, Richard Sandiford wrote:
Let's change it to:
/* { dg-do assemble { target aarch64_asm_cmpbr_ok } } */
/* { dg-do compile { target { ! aarch64_asm_cmpbr_ok } } } */
That was the original plan, and is used extensively in other aarch64 tests.
We changed it to use dg-do-if after Richard E pointed out that dejagnu
prior to 1.6 didn't allow the dg-do action to be conditional in this way
(see https://gcc.gnu.org/pipermail/gcc-patches/2025-May/682924.html
for a write-up).
But others have complained about dg-do-if not working either, and the
dejagnu 1.6 is 9 years old now.
Hmm, the commentary in that link is about dejagnu prior to 1.6, but for me it didn't work
with 1.6.2-1ubuntu1 as shipped with ubuntu-22.04.
I'll change it as you suggest.
r~