1 // Ensure we support the various CPU architecture names. 2 // 3 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=nocona 2>&1 \ 4 // RUN: | FileCheck %s -check-prefix=nocona 5 // nocona: "-target-cpu" "nocona" 6 // 7 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=core2 2>&1 \ 8 // RUN: | FileCheck %s -check-prefix=core2 9 // core2: "-target-cpu" "core2" 10 // 11 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=penryn 2>&1 \ 12 // RUN: | FileCheck %s -check-prefix=penryn 13 // penryn: "-target-cpu" "penryn" 14 // 15 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=nehalem 2>&1 \ 16 // RUN: | FileCheck %s -check-prefix=nehalem 17 // nehalem: "-target-cpu" "nehalem" 18 // 19 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=westmere 2>&1 \ 20 // RUN: | FileCheck %s -check-prefix=westmere 21 // westmere: "-target-cpu" "westmere" 22 // 23 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=sandybridge 2>&1 \ 24 // RUN: | FileCheck %s -check-prefix=sandybridge 25 // sandybridge: "-target-cpu" "sandybridge" 26 // 27 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=ivybridge 2>&1 \ 28 // RUN: | FileCheck %s -check-prefix=ivybridge 29 // ivybridge: "-target-cpu" "ivybridge" 30 // 31 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=haswell 2>&1 \ 32 // RUN: | FileCheck %s -check-prefix=haswell 33 // haswell: "-target-cpu" "haswell" 34 // 35 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=broadwell 2>&1 \ 36 // RUN: | FileCheck %s -check-prefix=broadwell 37 // broadwell: "-target-cpu" "broadwell" 38 // 39 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=bonnell 2>&1 \ 40 // RUN: | FileCheck %s -check-prefix=bonnell 41 // bonnell: "-target-cpu" "bonnell" 42 // 43 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=silvermont 2>&1 \ 44 // RUN: | FileCheck %s -check-prefix=silvermont 45 // silvermont: "-target-cpu" "silvermont" 46 // 47 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=k8 2>&1 \ 48 // RUN: | FileCheck %s -check-prefix=k8 49 // k8: "-target-cpu" "k8" 50 // 51 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=opteron 2>&1 \ 52 // RUN: | FileCheck %s -check-prefix=opteron 53 // opteron: "-target-cpu" "opteron" 54 // 55 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=athlon64 2>&1 \ 56 // RUN: | FileCheck %s -check-prefix=athlon64 57 // athlon64: "-target-cpu" "athlon64" 58 // 59 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=athlon-fx 2>&1 \ 60 // RUN: | FileCheck %s -check-prefix=athlon-fx 61 // athlon-fx: "-target-cpu" "athlon-fx" 62 // 63 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=k8-sse3 2>&1 \ 64 // RUN: | FileCheck %s -check-prefix=k8-sse3 65 // k8-sse3: "-target-cpu" "k8-sse3" 66 // 67 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=opteron-sse3 2>&1 \ 68 // RUN: | FileCheck %s -check-prefix=opteron-sse3 69 // opteron-sse3: "-target-cpu" "opteron-sse3" 70 // 71 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=athlon64-sse3 2>&1 \ 72 // RUN: | FileCheck %s -check-prefix=athlon64-sse3 73 // athlon64-sse3: "-target-cpu" "athlon64-sse3" 74 // 75 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=amdfam10 2>&1 \ 76 // RUN: | FileCheck %s -check-prefix=amdfam10 77 // amdfam10: "-target-cpu" "amdfam10" 78 // 79 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=barcelona 2>&1 \ 80 // RUN: | FileCheck %s -check-prefix=barcelona 81 // barcelona: "-target-cpu" "barcelona" 82 // 83 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=bdver1 2>&1 \ 84 // RUN: | FileCheck %s -check-prefix=bdver1 85 // bdver1: "-target-cpu" "bdver1" 86 // 87 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=bdver2 2>&1 \ 88 // RUN: | FileCheck %s -check-prefix=bdver2 89 // bdver2: "-target-cpu" "bdver2" 90 // 91 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=bdver3 2>&1 \ 92 // RUN: | FileCheck %s -check-prefix=bdver3 93 // bdver3: "-target-cpu" "bdver3" 94 // 95 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=bdver4 2>&1 \ 96 // RUN: | FileCheck %s -check-prefix=bdver4 97 // bdver4: "-target-cpu" "bdver4" 98 // 99 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=btver1 2>&1 \ 100 // RUN: | FileCheck %s -check-prefix=btver1 101 // btver1: "-target-cpu" "btver1" 102 // 103 // RUN: %clang -target x86_64-unknown-unknown -c -### %s -march=btver2 2>&1 \ 104 // RUN: | FileCheck %s -check-prefix=btver2 105 // btver2: "-target-cpu" "btver2" 106