Hi Thomas!

On 10/29/26 21:45, Thomas Schwinge wrote:
External email: Use caution opening links or attachments


Hi Matthew!

I happened to be testing this patch series on an "old" system, which has
'build-gcc/x86_64-pc-linux-gnu/libgomp/testsuite/libgomp-site-extra.exp':

     set libgomp_config_path {linux/x86 linux posix}

..., that is, libgomp built without 'linux/futex_waitv'.

However, for testing, I had:

On 2026-10-12T18:00:36+0100, <[email protected]> wrote:
--- a/libgomp/testsuite/lib/libgomp.exp
+++ b/libgomp/testsuite/lib/libgomp.exp

+proc check_effective_target_linux_futex_waitv { } {
+    global libgomp_config_path
+    return [expr {
+           [lsearch -exact $libgomp_config_path "linux/futex_waitv"] >= 0}]
+}

... changed as follows:

      proc check_effective_target_linux_futex_waitv { } {
     +    return 1
     +    #TODO id:[email protected]

..., that is, effective-target 'linux_futex_waitv' claimed to be
supported, unconditionally.

I notice *all* test cases PASSing that are conditionalized to it (as in
'dg-do run { target linux_futex_waitv }') -- that is, PASSing despite
libgomp built without 'linux/futex_waitv'.  That doesn't sound like
what's expected?  Does it mean that these test cases aren't in fact
testing any specifics of 'linux/futex_waitv', but are generic?  In that
case, we wouldn't need the effective-target 'linux_futex_waitv'
conditional at all?


Grüße
  Thomas

The test cases should pass on all targets, but they're crafted to trigger specific edge-cases in the new barriers and felt a little pointless to run anywhere else.

E.g. things like testing the "holding" feature that two of the futex_waitv barriers have (so can have only one barrier per parallel region), or testing overflow of the "cancel generation" packed into a bitfield in an integer doesn't spill over into the plain generation right after it.

So all test cases should pass on all targets -- but they are only expecting to test anything worthwhile on the futex_waitv target.

That said -- since they do check standard functionality I could see an argument for changing most of them if that's what people would prefer.

Cheers,
Matthew


Reply via email to