1 // Ensure we support the various CPU names.
3 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu nocona -verify %s
4 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu core2 -verify %s
5 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu penryn -verify %s
6 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu nehalem -verify %s
7 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu westmere -verify %s
8 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu sandybridge -verify %s
9 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu ivybridge -verify %s
10 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu haswell -verify %s
11 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu broadwell -verify %s
12 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu skylake -verify %s
13 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu skylake-avx512 -verify %s
14 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu skx -verify %s
15 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu cannonlake -verify %s
16 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu icelake-client -verify %s
17 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu icelake-server -verify %s
18 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu knl -verify %s
19 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu knm -verify %s
20 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu bonnell -verify %s
21 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu silvermont -verify %s
22 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu k8 -verify %s
23 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu opteron -verify %s
24 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu athlon64 -verify %s
25 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu athlon-fx -verify %s
26 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu k8-sse3 -verify %s
27 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu opteron-sse3 -verify %s
28 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu athlon64-sse3 -verify %s
29 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu amdfam10 -verify %s
30 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu barcelona -verify %s
31 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu bdver1 -verify %s
32 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu bdver2 -verify %s
33 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu bdver3 -verify %s
34 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu bdver4 -verify %s
35 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu btver1 -verify %s
36 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu btver2 -verify %s
37 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu znver1 -verify %s
38 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu znver2 -verify %s
39 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu znver3 -verify %s
40 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu znver4 -verify %s
41 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu znver5 -verify %s
43 // expected-no-diagnostics