Erich Keane | cfd451b | 2018-02-12 16:24:08 +0000 | [diff] [blame] | 1 | // RUN: not %clang_cc1 -triple armv5--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix ARM |
| 2 | // ARM: error: unknown target CPU 'not-a-cpu' |
| 3 | // ARM: note: valid target CPU values are: |
| 4 | // ARM-SAME: arm2 |
| 5 | |
| 6 | // RUN: not %clang_cc1 -triple arm64--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix AARCH64 |
| 7 | // AARCH64: error: unknown target CPU 'not-a-cpu' |
| 8 | // AARCH64: note: valid target CPU values are: |
| 9 | // AARCH64-SAME: cortex-a35, |
| 10 | |
| 11 | // RUN: not %clang_cc1 -triple i386--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix X86 |
| 12 | // X86: error: unknown target CPU 'not-a-cpu' |
| 13 | // X86: note: valid target CPU values are: i386, i486, winchip-c6, winchip2, c3, |
| 14 | // X86-SAME: i586, pentium, pentium-mmx, pentiumpro, i686, pentium2, pentium3, |
| 15 | // X86-SAME: pentium3m, pentium-m, c3-2, yonah, pentium4, pentium4m, prescott, |
| 16 | // X86-SAME: nocona, core2, penryn, bonnell, atom, silvermont, slm, goldmont, |
| 17 | // X86-SAME: nehalem, corei7, westmere, sandybridge, corei7-avx, ivybridge, |
| 18 | // X86-SAME: core-avx-i, haswell, core-avx2, broadwell, skylake, skylake-avx512, |
| 19 | // X86-SAME: skx, cannonlake, icelake, knl, knm, lakemont, k6, k6-2, k6-3, |
| 20 | // X86-SAME: athlon, athlon-tbird, athlon-xp, athlon-mp, athlon-4, k8, athlon64, |
| 21 | // X86-SAME: athlon-fx, opteron, k8-sse3, athlon64-sse3, opteron-sse3, amdfam10, |
| 22 | // X86-SAME: barcelona, btver1, btver2, bdver1, bdver2, bdver3, bdver4, znver1, |
| 23 | // X86-SAME: x86-64, geode |
| 24 | |
| 25 | // RUN: not %clang_cc1 -triple x86_64--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix X86_64 |
| 26 | // X86_64: error: unknown target CPU 'not-a-cpu' |
| 27 | // X86_64: note: valid target CPU values are: nocona, core2, penryn, bonnell, |
| 28 | // X86_64-SAME: atom, silvermont, slm, goldmont, nehalem, corei7, westmere, |
| 29 | // X86_64-SAME: sandybridge, corei7-avx, ivybridge, core-avx-i, haswell, |
| 30 | // X86_64-SAME: core-avx2, broadwell, skylake, skylake-avx512, skx, cannonlake, |
| 31 | // X86_64-SAME: icelake, knl, knm, k8, athlon64, athlon-fx, opteron, k8-sse3, |
| 32 | // X86_64-SAME: athlon64-sse3, opteron-sse3, amdfam10, barcelona, btver1, |
| 33 | // X86_64-SAME: btver2, bdver1, bdver2, bdver3, bdver4, znver1, x86-64 |
| 34 | |
| 35 | // RUN: not %clang_cc1 -triple nvptx--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix NVPTX |
| 36 | // NVPTX: error: unknown target CPU 'not-a-cpu' |
| 37 | // NVPTX: note: valid target CPU values are: sm_20, sm_21, sm_30, sm_32, sm_35, |
| 38 | // NVPTX-SAME: sm_37, sm_50, sm_52, sm_53, sm_60, sm_61, sm_62, sm_70, sm_72 |
| 39 | |
| 40 | // RUN: not %clang_cc1 -triple r600--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix R600 |
| 41 | // R600: error: unknown target CPU 'not-a-cpu' |
Erich Keane | a172654 | 2018-02-12 17:19:57 +0000 | [diff] [blame] | 42 | // R600: note: valid target CPU values are: r600, rv630, rv635, r630, rs780, |
| 43 | // R600-SAME: rs880, rv610, rv620, rv670, rv710, rv730, rv740, rv770, cedar, |
| 44 | // R600-SAME: palm, cypress, hemlock, juniper, redwood, sumo, sumo2, barts, |
| 45 | // R600-SAME: caicos, turks, aruba, cayman |
Erich Keane | cfd451b | 2018-02-12 16:24:08 +0000 | [diff] [blame] | 46 | |
| 47 | |
| 48 | // RUN: not %clang_cc1 -triple amdgcn--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix AMDGCN |
| 49 | // AMDGCN: error: unknown target CPU 'not-a-cpu' |
Erich Keane | a172654 | 2018-02-12 17:19:57 +0000 | [diff] [blame] | 50 | // AMDGCN: note: valid target CPU values are: gfx600, tahiti, gfx601, hainan, |
| 51 | // AMDGCN-SAME: oland, pitcairn, verde, gfx700, kaveri, gfx701, hawaii, gfx702, |
| 52 | // AMDGCN-SAME: gfx703, kabini, mullins, gfx704, bonaire, gfx801, carrizo, |
| 53 | // AMDGCN-SAME: gfx802, iceland, tonga, gfx803, fiji, polaris10, polaris11, |
| 54 | // AMDGCN-SAME: gfx810, stoney, gfx900, gfx902 |
Erich Keane | cfd451b | 2018-02-12 16:24:08 +0000 | [diff] [blame] | 55 | |
| 56 | // RUN: not %clang_cc1 -triple wasm64--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix WEBASM |
| 57 | // WEBASM: error: unknown target CPU 'not-a-cpu' |
| 58 | // WEBASM: note: valid target CPU values are: mvp, bleeding-edge, generic |
| 59 | |
| 60 | // RUN: not %clang_cc1 -triple systemz--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix SYSTEMZ |
| 61 | // SYSTEMZ: error: unknown target CPU 'not-a-cpu' |
| 62 | // SYSTEMZ: note: valid target CPU values are: arch8, z10, arch9, z196, arch10, |
| 63 | // SYSTEMZ-SAME: zEC12, arch11, z13, arch12, z14 |
| 64 | |
| 65 | // RUN: not %clang_cc1 -triple sparc--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix SPARC |
| 66 | // SPARC: error: unknown target CPU 'not-a-cpu' |
| 67 | // SPARC: note: valid target CPU values are: v8, supersparc, sparclite, f934, |
| 68 | // SPARC-SAME: hypersparc, sparclite86x, sparclet, tsc701, v9, ultrasparc, |
| 69 | // SPARC-SAME: ultrasparc3, niagara, niagara2, niagara3, niagara4, ma2100, |
| 70 | // SPARC-SAME: ma2150, ma2155, ma2450, ma2455, ma2x5x, ma2080, ma2085, ma2480, |
| 71 | // SPARC-SAME: ma2485, ma2x8x, myriad2, myriad2.1, myriad2.2, myriad2.3, leon2, |
| 72 | // SPARC-SAME: at697e, at697f, leon3, ut699, gr712rc, leon4, gr740 |
| 73 | |
| 74 | // RUN: not %clang_cc1 -triple sparcv9--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix SPARCV9 |
| 75 | // SPARCV9: error: unknown target CPU 'not-a-cpu' |
| 76 | // SPARCV9: note: valid target CPU values are: v9, ultrasparc, ultrasparc3, niagara, niagara2, niagara3, niagara4 |
| 77 | |
| 78 | // RUN: not %clang_cc1 -triple powerpc--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix PPC |
| 79 | // PPC: error: unknown target CPU 'not-a-cpu' |
| 80 | // PPC: note: valid target CPU values are: generic, 440, 450, 601, 602, 603, |
| 81 | // PPC-SAME: 603e, 603ev, 604, 604e, 620, 630, g3, 7400, g4, 7450, g4+, 750, |
| 82 | // PPC-SAME: 970, g5, a2, a2q, e500mc, e5500, power3, pwr3, power4, pwr4, |
| 83 | // PPC-SAME: power5, pwr5, power5x, pwr5x, power6, pwr6, power6x, pwr6x, power7, |
| 84 | // PPC-SAME: pwr7, power8, pwr8, power9, pwr9, powerpc, ppc, powerpc64, ppc64, |
| 85 | // PPC-SAME: powerpc64le, ppc64le |
| 86 | |
| 87 | // RUN: not %clang_cc1 -triple nios2--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix NIOS |
| 88 | // NIOS: error: unknown target CPU 'not-a-cpu' |
| 89 | // NIOS: note: valid target CPU values are: nios2r1, nios2r2 |
| 90 | |
| 91 | // RUN: not %clang_cc1 -triple mips--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix MIPS |
| 92 | // MIPS: error: unknown target CPU 'not-a-cpu' |
| 93 | // MIPS: note: valid target CPU values are: mips1, mips2, mips3, mips4, mips5, |
| 94 | // MIPS-SAME: mips32, mips32r2, mips32r3, mips32r5, mips32r6, mips64, mips64r2, |
| 95 | // MIPS-SAME: mips64r3, mips64r5, mips64r6, octeon, p5600 |
| 96 | |
| 97 | // RUN: not %clang_cc1 -triple lanai--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix LANAI |
| 98 | // LANAI: error: unknown target CPU 'not-a-cpu' |
| 99 | // LANAI: note: valid target CPU values are: v11 |
| 100 | |
| 101 | // RUN: not %clang_cc1 -triple hexagon--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix HEXAGON |
| 102 | // HEXAGON: error: unknown target CPU 'not-a-cpu' |
| 103 | // HEXAGON: note: valid target CPU values are: hexagonv4, hexagonv5, hexagonv55, |
| 104 | // HEXAGON-SAME: hexagonv60, hexagonv62, hexagonv65 |
| 105 | |
| 106 | // RUN: not %clang_cc1 -triple bpf--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix BPF |
| 107 | // BPF: error: unknown target CPU 'not-a-cpu' |
| 108 | // BPF: note: valid target CPU values are: generic, v1, v2, probe |
| 109 | |
| 110 | // RUN: not %clang_cc1 -triple avr--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix AVR |
| 111 | // AVR: error: unknown target CPU 'not-a-cpu' |
| 112 | // AVR: note: valid target CPU values are: avr1, avr2, avr25, avr3, avr31, |
| 113 | // AVR-SAME: avr35, avr4, avr5, avr51, avr6, avrxmega1, avrxmega2, avrxmega3, |
| 114 | // AVR-SAME: avrxmega4, avrxmega5, avrxmega6, avrxmega7, avrtiny, at90s1200, |
| 115 | // AVR-SAME: attiny11, attiny12, attiny15, attiny28, at90s2313, at90s2323, |
| 116 | // AVR-SAME: at90s2333, at90s2343, attiny22, attiny26, at86rf401, at90s4414, |
| 117 | // AVR-SAME: t90s4433, at90s4434, at90s8515, at90c8534, at90s8535, ata5272, |
| 118 | // AVR-SAME: ttiny13, attiny13a, attiny2313, attiny2313a, attiny24, attiny24a, |
| 119 | // AVR-SAME: ttiny4313, attiny44, attiny44a, attiny84, attiny84a, attiny25, |
| 120 | // AVR-SAME: ttiny45, attiny85, attiny261, attiny261a, attiny461, attiny461a, |
| 121 | // AVR-SAME: ttiny861, attiny861a, attiny87, attiny43u, attiny48, attiny88, |
| 122 | // AVR-SAME: ttiny828, at43usb355, at76c711, atmega103, at43usb320, attiny167, |
| 123 | // AVR-SAME: t90usb82, at90usb162, ata5505, atmega8u2, atmega16u2, |
| 124 | // AVR-SAME: atmega32u2, attiny1634, atmega8, ata6289, atmega8a, ata6285, |
| 125 | // AVR-SAME: ata6286, atmega48, atmega48a, atmega48pa, atmega48p, atmega88, |
| 126 | // AVR-SAME: atmega88a, atmega88p, atmega88pa, atmega8515, atmega8535, |
| 127 | // AVR-SAME: atmega8hva, at90pwm1, at90pwm2, at90pwm2b, at90pwm3, at90pwm3b, |
| 128 | // AVR-SAME: at90pwm81, ata5790, ata5795, atmega16, atmega16a, atmega161, |
| 129 | // AVR-SAME: atmega162, atmega163, atmega164a, atmega164p, atmega164pa, |
| 130 | // AVR-SAME: atmega165, atmega165a, atmega165p, atmega165pa, atmega168, |
| 131 | // AVR-SAME: atmega168a, atmega168p, atmega168pa, atmega169, atmega169a, |
| 132 | // AVR-SAME: atmega169p, atmega169pa, atmega32, atmega32a, atmega323, |
| 133 | // AVR-SAME: atmega324a, atmega324p, atmega324pa, atmega325, atmega325a, |
| 134 | // AVR-SAME: atmega325p, atmega325pa, atmega3250, atmega3250a, atmega3250p, |
| 135 | // AVR-SAME: atmega3250pa, atmega328, atmega328p, atmega329, atmega329a, |
| 136 | // AVR-SAME: atmega329p, atmega329pa, atmega3290, atmega3290a, atmega3290p, |
| 137 | // AVR-SAME: atmega3290pa, atmega406, atmega64, atmega64a, atmega640, atmega644, |
| 138 | // AVR-SAME: atmega644a, atmega644p, atmega644pa, atmega645, atmega645a, |
| 139 | // AVR-SAME: tmega645p, atmega649, atmega649a, atmega649p, atmega6450, |
| 140 | // AVR-SAME: tmega6450a, atmega6450p, atmega6490, atmega6490a, atmega6490p, |
| 141 | // AVR-SAME: tmega64rfr2, atmega644rfr2, atmega16hva, atmega16hva2, |
| 142 | // AVR-SAME: tmega16hvb, atmega16hvbrevb, atmega32hvb, atmega32hvbrevb, |
| 143 | // AVR-SAME: tmega64hve, at90can32, at90can64, at90pwm161, at90pwm216, |
| 144 | // AVR-SAME: t90pwm316, atmega32c1, atmega64c1, atmega16m1, atmega32m1, |
| 145 | // AVR-SAME: tmega64m1, atmega16u4, atmega32u4, atmega32u6, at90usb646, |
| 146 | // AVR-SAME: t90usb647, at90scr100, at94k, m3000, atmega128, atmega128a, |
| 147 | // AVR-SAME: tmega1280, atmega1281, atmega1284, atmega1284p, atmega128rfa1, |
| 148 | // AVR-SAME: tmega128rfr2, atmega1284rfr2, at90can128, at90usb1286, |
| 149 | // AVR-SAME: t90usb1287, atmega2560, atmega2561, atmega256rfr2, atmega2564rfr2, |
| 150 | // AVR-SAME: txmega16a4, atxmega16a4u, atxmega16c4, atxmega16d4, atxmega32a4, |
| 151 | // AVR-SAME: txmega32a4u, atxmega32c4, atxmega32d4, atxmega32e5, atxmega16e5, |
| 152 | // AVR-SAME: txmega8e5, atxmega32x1, atxmega64a3, atxmega64a3u, atxmega64a4u, |
| 153 | // AVR-SAME: txmega64b1, atxmega64b3, atxmega64c3, atxmega64d3, atxmega64d4, |
| 154 | // AVR-SAME: txmega64a1, atxmega64a1u, atxmega128a3, atxmega128a3u, |
| 155 | // AVR-SAME: txmega128b1, atxmega128b3, atxmega128c3, atxmega128d3, |
| 156 | // AVR-SAME: txmega128d4, atxmega192a3, atxmega192a3u, atxmega192c3, |
| 157 | // AVR-SAME: txmega192d3, atxmega256a3, atxmega256a3u, atxmega256a3b, |
| 158 | // AVR-SAME: txmega256a3bu, atxmega256c3, atxmega256d3, atxmega384c3, |
| 159 | // AVR-SAME: txmega384d3, atxmega128a1, atxmega128a1u, atxmega128a4u, |
| 160 | // AVR-SAME: ttiny4, attiny5, attiny9, attiny10, attiny20, attiny40, attiny102, |
| 161 | // AVR-SAME: attiny104 |
| 162 | |