Driver will now error when trying to compile for V2 or V3.
Removal of V2 and V3 support will allow us to simplify the hexagon back-end. Thanks, Matthew Curtis -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
>From caea92e40b0bed252e3975d93e33527b3c7a21bf Mon Sep 17 00:00:00 2001 From: Matthew Curtis <[email protected]> Date: Mon, 11 Feb 2013 09:32:45 -0600 Subject: [PATCH] Remove driver support for Hexagon V2 and V3 Driver will now error when trying to compile for V2 or V3. Removal of V2 and V3 support will allow us to simplify the hexagon back-end. --- lib/Basic/Targets.cpp | 2 -- test/Driver/hexagon-toolchain.c | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index d148528..b7cd3dc 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -3960,8 +3960,6 @@ public: static const char *getHexagonCPUSuffix(StringRef Name) { return llvm::StringSwitch<const char*>(Name) - .Case("hexagonv2", "2") - .Case("hexagonv3", "3") .Case("hexagonv4", "4") .Case("hexagonv5", "5") .Default(0); diff --git a/test/Driver/hexagon-toolchain.c b/test/Driver/hexagon-toolchain.c index 53c034d..bfa627c 100644 --- a/test/Driver/hexagon-toolchain.c +++ b/test/Driver/hexagon-toolchain.c @@ -108,6 +108,22 @@ // CHECK010-NEXT: "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/bin/hexagon-as"{{.*}} "-march=v4" // CHECK010-NEXT: "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/bin/hexagon-ld"{{.*}} "-mv4" +// RUN: %clang -march=hexagonv2 -target hexagon-unknown-linux \ +// RUN: %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-V2 %s +// RUN: %clang -mcpu=hexagonv2 -target hexagon-unknown-linux \ +// RUN: %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-V2 %s +// RUN: %clang -mv2 -target hexagon-unknown-linux \ +// RUN: %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-V2 %s +// CHECK-UNKNOWN-V2: error: unknown target CPU 'hexagonv2' + +// RUN: %clang -march=hexagonv3 -target hexagon-unknown-linux \ +// RUN: %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-V3 %s +// RUN: %clang -mcpu=hexagonv3 -target hexagon-unknown-linux \ +// RUN: %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-V3 %s +// RUN: %clang -mv3 -target hexagon-unknown-linux \ +// RUN: %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-V3 %s +// CHECK-UNKNOWN-V3: error: unknown target CPU 'hexagonv3' + // ----------------------------------------------------------------------------- // Test Linker related args // ----------------------------------------------------------------------------- -- 1.7.8.3
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
