forked from OSchip/llvm-project
parent
bc76dc3cec
commit
57e6706e56
|
@ -2146,7 +2146,7 @@ Link stack frames through backchain on System Z
|
|||
|
||||
.. option:: -mconsole<arg>
|
||||
|
||||
.. option:: -mcpu=<arg>, -mv4 (equivalent to -mcpu=hexagonv4), -mv5 (equivalent to -mcpu=hexagonv5), -mv55 (equivalent to -mcpu=hexagonv55), -mv60 (equivalent to -mcpu=hexagonv60), -mv62 (equivalent to -mcpu=hexagonv62), -mv65 (equivalent to -mcpu=hexagonv65)
|
||||
.. option:: -mcpu=<arg>, -mv5 (equivalent to -mcpu=hexagonv5), -mv55 (equivalent to -mcpu=hexagonv55), -mv60 (equivalent to -mcpu=hexagonv60), -mv62 (equivalent to -mcpu=hexagonv62), -mv65 (equivalent to -mcpu=hexagonv65)
|
||||
|
||||
.. option:: -mcrc, -mno-crc
|
||||
|
||||
|
|
|
@ -2661,8 +2661,6 @@ def _ : Joined<["--"], "">, Flags<[Unsupported]>;
|
|||
// Hexagon feature flags.
|
||||
def mieee_rnd_near : Flag<["-"], "mieee-rnd-near">,
|
||||
Group<m_hexagon_Features_Group>;
|
||||
def mv4 : Flag<["-"], "mv4">, Group<m_hexagon_Features_Group>,
|
||||
Alias<mcpu_EQ>, AliasArgs<["hexagonv4"]>;
|
||||
def mv5 : Flag<["-"], "mv5">, Group<m_hexagon_Features_Group>, Alias<mcpu_EQ>,
|
||||
AliasArgs<["hexagonv5"]>;
|
||||
def mv55 : Flag<["-"], "mv55">, Group<m_hexagon_Features_Group>,
|
||||
|
|
|
@ -25,14 +25,7 @@ void HexagonTargetInfo::getTargetDefines(const LangOptions &Opts,
|
|||
Builder.defineMacro("__qdsp6__", "1");
|
||||
Builder.defineMacro("__hexagon__", "1");
|
||||
|
||||
if (CPU == "hexagonv4") {
|
||||
Builder.defineMacro("__HEXAGON_V4__");
|
||||
Builder.defineMacro("__HEXAGON_ARCH__", "4");
|
||||
if (Opts.HexagonQdsp6Compat) {
|
||||
Builder.defineMacro("__QDSP6_V4__");
|
||||
Builder.defineMacro("__QDSP6_ARCH__", "4");
|
||||
}
|
||||
} else if (CPU == "hexagonv5") {
|
||||
if (CPU == "hexagonv5") {
|
||||
Builder.defineMacro("__HEXAGON_V5__");
|
||||
Builder.defineMacro("__HEXAGON_ARCH__", "5");
|
||||
if (Opts.HexagonQdsp6Compat) {
|
||||
|
@ -150,9 +143,9 @@ struct CPUSuffix {
|
|||
};
|
||||
|
||||
static constexpr CPUSuffix Suffixes[] = {
|
||||
{{"hexagonv4"}, {"4"}}, {{"hexagonv5"}, {"5"}},
|
||||
{{"hexagonv55"}, {"55"}}, {{"hexagonv60"}, {"60"}},
|
||||
{{"hexagonv62"}, {"62"}}, {{"hexagonv65"}, {"65"}},
|
||||
{{"hexagonv5"}, {"5"}}, {{"hexagonv55"}, {"55"}},
|
||||
{{"hexagonv60"}, {"60"}}, {{"hexagonv62"}, {"62"}},
|
||||
{{"hexagonv65"}, {"65"}},
|
||||
};
|
||||
|
||||
const char *HexagonTargetInfo::getHexagonCPUSuffix(StringRef Name) {
|
||||
|
|
|
@ -57,14 +57,6 @@
|
|||
// -----------------------------------------------------------------------------
|
||||
// Test -mcpu=<cpuname> -mv<number>
|
||||
// -----------------------------------------------------------------------------
|
||||
// RUN: %clang -### -target hexagon-unknown-elf \
|
||||
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/Tools/bin \
|
||||
// RUN: -mcpu=hexagonv4 \
|
||||
// RUN: %s 2>&1 \
|
||||
// RUN: | FileCheck -check-prefix=CHECK020 %s
|
||||
// CHECK020: "-cc1" {{.*}} "-target-cpu" "hexagonv4"
|
||||
// CHECK020: {{hexagon-link|ld}}{{.*}}/Inputs/hexagon_tree/Tools/bin/../target/hexagon/lib/v4/crt0
|
||||
|
||||
// RUN: %clang -### -target hexagon-unknown-elf \
|
||||
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/Tools/bin \
|
||||
// RUN: -mcpu=hexagonv5 \
|
||||
|
|
|
@ -100,7 +100,7 @@
|
|||
|
||||
// RUN: not %clang_cc1 -triple hexagon--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix HEXAGON
|
||||
// HEXAGON: error: unknown target CPU 'not-a-cpu'
|
||||
// HEXAGON: note: valid target CPU values are: hexagonv4, hexagonv5, hexagonv55,
|
||||
// HEXAGON: note: valid target CPU values are: hexagonv5, hexagonv55,
|
||||
// HEXAGON-SAME: hexagonv60, hexagonv62, hexagonv65
|
||||
|
||||
// RUN: not %clang_cc1 -triple bpf--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix BPF
|
||||
|
|
Loading…
Reference in New Issue