Author: Krzysztof Parzyszek Date: 2020-01-16T10:18:58-06:00 New Revision: 7f5f6ff5476b6dafb5be2f9c102d9b324a313717
URL: https://github.com/llvm/llvm-project/commit/7f5f6ff5476b6dafb5be2f9c102d9b324a313717 DIFF: https://github.com/llvm/llvm-project/commit/7f5f6ff5476b6dafb5be2f9c102d9b324a313717.diff LOG: [Hexagon] Add preprocessor test for hexagonv66 Added: Modified: clang/test/Preprocessor/hexagon-predefines.c Removed: ################################################################################ diff --git a/clang/test/Preprocessor/hexagon-predefines.c b/clang/test/Preprocessor/hexagon-predefines.c index 1d122c0e8275..e833bf862116 100644 --- a/clang/test/Preprocessor/hexagon-predefines.c +++ b/clang/test/Preprocessor/hexagon-predefines.c @@ -33,6 +33,13 @@ // CHECK-V65-NOT: #define __HVX__ 1 // CHECK-V65: #define __hexagon__ 1 +// RUN: %clang_cc1 -E -dM -triple hexagon-unknown-elf -target-cpu hexagonv66 %s | FileCheck %s -check-prefix CHECK-V66 +// CHECK-V66: #define __HEXAGON_ARCH__ 66 +// CHECK-V66: #define __HEXAGON_V66__ 1 +// CHECK-V66-NOT: #define __HVX_LENGTH__ +// CHECK-V66-NOT: #define __HVX__ 1 +// CHECK-V66: #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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits