diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:04:05 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:04:05 +0000 |
| commit | 676fbe8105eeb6ff4bb2ed261cb212fcfdbe7b63 (patch) | |
| tree | 02a1ac369cb734d0abfa5000dd86e5b7797e6a74 /test/Preprocessor/hexagon-predefines.c | |
| parent | c7e70c433efc6953dc3888b9fbf9f3512d7da2b0 (diff) | |
Vendor import of clang trunk r351319 (just before the release_80 branchvendor/clang/clang-trunk-r351319
Diffstat (limited to 'test/Preprocessor/hexagon-predefines.c')
| -rw-r--r-- | test/Preprocessor/hexagon-predefines.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/Preprocessor/hexagon-predefines.c b/test/Preprocessor/hexagon-predefines.c index fe87262ae635..1d122c0e8275 100644 --- a/test/Preprocessor/hexagon-predefines.c +++ b/test/Preprocessor/hexagon-predefines.c @@ -34,6 +34,8 @@ // CHECK-V65: #define __hexagon__ 1 // The HVX flags are explicitly defined by the driver. +// For v60,v62,v65 - 64B mode is default +// For v66 and future archs - 128B is default // RUN: %clang_cc1 -E -dM -triple hexagon-unknown-elf -target-cpu hexagonv60 \ // RUN: -target-feature +hvxv60 -target-feature +hvx-length64b %s | FileCheck \ // RUN: %s -check-prefix CHECK-V60HVX-64B @@ -55,3 +57,25 @@ // CHECK-V60HVX-128B: #define __HVX_LENGTH__ 128 // CHECK-V60HVX-128B: #define __HVX__ 1 // CHECK-V60HVX-128B: #define __hexagon__ 1 + +// RUN: %clang_cc1 -E -dM -triple hexagon-unknown-elf -target-cpu hexagonv66 \ +// RUN: -target-feature +hvxv66 -target-feature +hvx-length64b %s | FileCheck \ +// RUN: %s -check-prefix CHECK-V66HVX-64B +// CHECK-V66HVX-64B: #define __HEXAGON_ARCH__ 66 +// CHECK-V66HVX-64B: #define __HEXAGON_V66__ 1 +// CHECK-V66HVX-64B-NOT: #define __HVXDBL__ 1 +// CHECK-V66HVX-64B: #define __HVX_ARCH__ 66 +// CHECK-V66HVX-64B: #define __HVX_LENGTH__ 64 +// CHECK-V66HVX-64B: #define __HVX__ 1 +// CHECK-V66HVX-64B: #define __hexagon__ 1 + +// RUN: %clang_cc1 -E -dM -triple hexagon-unknown-elf -target-cpu hexagonv66 \ +// RUN: -target-feature +hvxv66 -target-feature +hvx-length128b %s | FileCheck \ +// RUN: %s -check-prefix CHECK-V66HVX-128B +// CHECK-V66HVX-128B: #define __HEXAGON_ARCH__ 66 +// CHECK-V66HVX-128B: #define __HEXAGON_V66__ 1 +// CHECK-V66HVX-128B: #define __HVXDBL__ 1 +// CHECK-V66HVX-128B: #define __HVX_ARCH__ 66 +// CHECK-V66HVX-128B: #define __HVX_LENGTH__ 128 +// CHECK-V66HVX-128B: #define __HVX__ 1 +// CHECK-V66HVX-128B: #define __hexagon__ 1 |
