"Fossies" - the Fresh Open Source Software Archive

Member "cfe-9.0.0.src/test/Frontend/x86-target-cpu.c" (26 Feb 2019, 3017 Bytes) of package /linux/misc/cfe-9.0.0.src.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "x86-target-cpu.c": 8.0.1_vs_9.0.0.

    1 // Ensure we support the various CPU names.
    2 //
    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 //
   40 // expected-no-diagnostics