Selectors - GNU Compiler Collection (GCC) Internals
Description: GNU Compiler Collection (GCC) Internals

Next: Effective-Target Keywords, Previous: Directives, Up: Test Directives

#### 7.2.2 Selecting targets to which a test applies

Several test directives include selectors to limit the targets for which a test is run or to declare that a test is expected to fail on particular targets.

A selector is:

- one or more target triplets, possibly including wildcard characters
- a single effective-target keyword (see Effective-Target Keywords)
- a logical expression

Depending on the context, the selector specifies whether a test is skipped and reported as unsupported or is expected to fail. Use ‘`*-*-*`’ to match any target.

A selector expression appears within curly braces and uses a single logical operator: one of ‘`!`’, ‘`&&`’, or ‘`||`’. An operand is another selector expression, an effective-target keyword, a single target triplet, or a list of target triplets within quotes or curly braces. For example:

         { target { ! "hppa*-*-* ia64*-*-*" } }
         { target { powerpc*-*-* && lp64 } }
         { xfail { lp64 || vect_no_align } }