gas/testsuite: properly exclude aout in all/weakref1u

Use the (wider) predicate rather than a triplet. This eliminates the sole
i386-msdos failure in the testsuite.
diff --git a/gas/testsuite/gas/all/weakref1u.d b/gas/testsuite/gas/all/weakref1u.d
index 5b8d848..3259f90 100644
--- a/gas/testsuite/gas/all/weakref1u.d
+++ b/gas/testsuite/gas/all/weakref1u.d
@@ -3,7 +3,7 @@
 #source: weakref1.s
 # aout turns undefined into *ABS* symbols.
 # see weakref1.d for comments on the other notargets
-#notarget: *-*-*aout ns32k-*-* alpha*-*-osf* *-*-ecoff
+#notarget: [is_aout_format] ns32k-*-* alpha*-*-osf* *-*-ecoff
 
 # the rest of this file is generated with the following script:
 # # script begin