diff options
Diffstat (limited to 'test/Frontend/x86-target-cpu.c')
-rw-r--r-- | test/Frontend/x86-target-cpu.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/Frontend/x86-target-cpu.c b/test/Frontend/x86-target-cpu.c new file mode 100644 index 0000000..769c40a --- /dev/null +++ b/test/Frontend/x86-target-cpu.c @@ -0,0 +1,30 @@ +// Ensure we support the various CPU names. +// +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu nocona -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu core2 -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu penryn -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu nehalem -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu westmere -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu sandybridge -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu ivybridge -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu haswell -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu broadwell -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu bonnell -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu silvermont -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu k8 -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu opteron -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu athlon64 -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu athlon-fx -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu k8-sse3 -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu opteron-sse3 -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu athlon64-sse3 -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu amdfam10 -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu barcelona -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu bdver1 -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu bdver2 -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu bdver3 -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu bdver4 -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu btver1 -verify %s +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-cpu btver2 -verify %s +// +// expected-no-diagnostics |