
For AArch64, we have existing tests for `--print-enabled-extensions` for each architecture. However: - These are added to the end of the existing tests which check for `"-target-feature"`, which complicates them slightly. - They do not test the descriptions printed next to each feature. - Part of the output was tested separately in `TargetParserTest`. - We did not have _any_ tests of this output for CPUs (only for architectures). Similarly, the tests for `--print-supported-extensions` do not give complete coverage of either the full list of features or the descriptions. In my opinion we should be testing the full output, as this is what the user sees. Descriptions and formatting can contain errors and be accidentally broken.
6 lines
325 B
C
6 lines
325 B
C
// Test that --print-supported-extensions errors on unsupported architectures.
|
|
|
|
// RUN: %if x86-registered-target %{ not %clang --target=x86_64-linux-gnu \
|
|
// RUN: --print-supported-extensions 2>&1 | FileCheck %s --check-prefix X86 %}
|
|
// X86: error: option '--print-supported-extensions' cannot be specified on this target
|