forked from OSchip/llvm-project
[Hexagon] Define architecture version macros for hexagonv55
llvm-svn: 266989
This commit is contained in:
parent
6764fa7840
commit
a58ff5117a
|
@ -5940,6 +5940,11 @@ void HexagonTargetInfo::getTargetDefines(const LangOptions &Opts,
|
|||
Builder.defineMacro("__QDSP6_V5__");
|
||||
Builder.defineMacro("__QDSP6_ARCH__", "5");
|
||||
}
|
||||
} else if (CPU == "hexagonv55") {
|
||||
Builder.defineMacro("__HEXAGON_V55__");
|
||||
Builder.defineMacro("__HEXAGON_ARCH__", "55");
|
||||
Builder.defineMacro("__QDSP6_V55__");
|
||||
Builder.defineMacro("__QDSP6_ARCH__", "55");
|
||||
} else if (CPU == "hexagonv60") {
|
||||
Builder.defineMacro("__HEXAGON_V60__");
|
||||
Builder.defineMacro("__HEXAGON_ARCH__", "60");
|
||||
|
|
|
@ -4,6 +4,12 @@
|
|||
// CHECK-V5: #define __HEXAGON_V5__ 1
|
||||
// CHECK-V5: #define __hexagon__ 1
|
||||
|
||||
// RUN: %clang_cc1 -E -dM -triple hexagon-unknown-elf -target-cpu hexagonv55 %s | FileCheck %s -check-prefix CHECK-V55
|
||||
|
||||
// CHECK-V55: #define __HEXAGON_ARCH__ 55
|
||||
// CHECK-V55: #define __HEXAGON_V55__ 1
|
||||
// CHECK-V55: #define __hexagon__ 1
|
||||
|
||||
// RUN: %clang_cc1 -E -dM -triple hexagon-unknown-elf -target-cpu hexagonv60 %s | FileCheck %s -check-prefix CHECK-V60
|
||||
|
||||
// CHECK-V60: #define __HEXAGON_ARCH__ 60
|
||||
|
|
Loading…
Reference in New Issue