
This change does two kinds of splits: - Splits each target into a different file. Some targets are left in the same files, such as riscv32/64 and x86/_64 as these tests and lists are very similar. - Splits up the very long 'note:' lines which contain a list of CPUs, using `CHECK-SAME`. There was a note about this not being possible before, but with `{{^}}`, this is now possible -- I have verified that this does the right thing if a single CPU anywhere in the list is left out. These tests had become quite annoying to change when adding a CPU, and I believe this change makes these easier to maintain, and should cut down on conflicts in these files (or at least makes conflicts easier to resolve). I apologise in advance for downstream conflicts, but hopefully that's a small amount of short term pain, in return for fewer conflicts in future.
35 lines
1.1 KiB
C
35 lines
1.1 KiB
C
// This test uses '<prefix>-SAME: {{^}}' to start matching immediately where the
|
|
// previous check finished matching (specifically, caret is not treated as
|
|
// matching a start of line when used like this in FileCheck).
|
|
|
|
// RUN: not %clang_cc1 -triple r600--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s
|
|
// CHECK: error: unknown target CPU 'not-a-cpu'
|
|
// CHECK-NEXT: note: valid target CPU values are:
|
|
// CHECK-SAME: {{^}} r600
|
|
// CHECK-SAME: {{^}}, rv630
|
|
// CHECK-SAME: {{^}}, rv635
|
|
// CHECK-SAME: {{^}}, r630
|
|
// CHECK-SAME: {{^}}, rs780
|
|
// CHECK-SAME: {{^}}, rs880
|
|
// CHECK-SAME: {{^}}, rv610
|
|
// CHECK-SAME: {{^}}, rv620
|
|
// CHECK-SAME: {{^}}, rv670
|
|
// CHECK-SAME: {{^}}, rv710
|
|
// CHECK-SAME: {{^}}, rv730
|
|
// CHECK-SAME: {{^}}, rv740
|
|
// CHECK-SAME: {{^}}, rv770
|
|
// CHECK-SAME: {{^}}, cedar
|
|
// CHECK-SAME: {{^}}, palm
|
|
// CHECK-SAME: {{^}}, cypress
|
|
// CHECK-SAME: {{^}}, hemlock
|
|
// CHECK-SAME: {{^}}, juniper
|
|
// CHECK-SAME: {{^}}, redwood
|
|
// CHECK-SAME: {{^}}, sumo
|
|
// CHECK-SAME: {{^}}, sumo2
|
|
// CHECK-SAME: {{^}}, barts
|
|
// CHECK-SAME: {{^}}, caicos
|
|
// CHECK-SAME: {{^}}, aruba
|
|
// CHECK-SAME: {{^}}, cayman
|
|
// CHECK-SAME: {{^}}, turks
|
|
// CHECK-SAME: {{$}}
|