From 6cf872c2980717b75f8e12639c56af1bd801ee19 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Sat, 26 Jul 2014 01:05:20 +0000 Subject: [PATCH] R600: Add processor type for Mullins git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213999 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Basic/Targets.cpp | 1 + test/Driver/r600-mcpu.cl | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index e78244d95c..3a80d0f2ac 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -1566,6 +1566,7 @@ public: .Case("kabini", GK_SEA_ISLANDS) .Case("kaveri", GK_SEA_ISLANDS) .Case("hawaii", GK_SEA_ISLANDS) + .Case("mullins", GK_SEA_ISLANDS) .Default(GK_NONE); if (GPU == GK_NONE) { diff --git a/test/Driver/r600-mcpu.cl b/test/Driver/r600-mcpu.cl index 7238ff4fbd..47c018512b 100644 --- a/test/Driver/r600-mcpu.cl +++ b/test/Driver/r600-mcpu.cl @@ -34,6 +34,7 @@ // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=kabini %s -o - 2>&1 | FileCheck --check-prefix=KABINI-CHECK %s // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=kaveri %s -o - 2>&1 | FileCheck --check-prefix=KAVERI-CHECK %s // RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=hawaii %s -o - 2>&1 | FileCheck --check-prefix=HAWAII-CHECK %s +// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=mullins %s -o - 2>&1 | FileCheck --check-prefix=MULLINS-CHECK %s // R600-CHECK: "-target-cpu" "r600" // RS880-CHECK: "-target-cpu" "rs880" @@ -58,3 +59,4 @@ // KABINI-CHECK: "-target-cpu" "kabini" // KAVERI-CHECK: "-target-cpu" "kaveri" // HAWAII-CHECK: "-target-cpu" "hawaii" +// MULLINS-CHECK: "-target-cpu" "mullins" -- 2.40.0