diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2016-02-29 15:08:56 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2016-02-29 15:08:56 +0000 |
commit | 2c7cdd25ee6e1f3f6ff67aa035f1b5174581c132 (patch) | |
tree | b6d3ea717ba48a3947ddeb696accc14f63907e0c /clang | |
parent | c0a19b079db3f74e2e3b7190a49123aa2a4520e0 (diff) | |
download | bcm5719-llvm-2c7cdd25ee6e1f3f6ff67aa035f1b5174581c132.tar.gz bcm5719-llvm-2c7cdd25ee6e1f3f6ff67aa035f1b5174581c132.zip |
AMDGPU: Add missing Volcanic Islands targets
Reviewers: arsenm
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D17645
llvm-svn: 262228
Diffstat (limited to 'clang')
-rw-r--r-- | clang/lib/Basic/Targets.cpp | 2 | ||||
-rw-r--r-- | clang/test/Driver/r600-mcpu.cl | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 861a1e66568..073906ba31a 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -1931,6 +1931,8 @@ public: .Case("tonga", GK_VOLCANIC_ISLANDS) .Case("iceland", GK_VOLCANIC_ISLANDS) .Case("carrizo", GK_VOLCANIC_ISLANDS) + .Case("fiji", GK_VOLCANIC_ISLANDS) + .Case("stoney", GK_VOLCANIC_ISLANDS) .Default(GK_NONE); if (GPU == GK_NONE) { diff --git a/clang/test/Driver/r600-mcpu.cl b/clang/test/Driver/r600-mcpu.cl index 4fbec0c83bf..325e57174c3 100644 --- a/clang/test/Driver/r600-mcpu.cl +++ b/clang/test/Driver/r600-mcpu.cl @@ -38,6 +38,8 @@ t// Check that -mcpu works for all supported GPUs // RUN: %clang -### -target amdgcn -x cl -S -emit-llvm -mcpu=tonga %s -o - 2>&1 | FileCheck --check-prefix=TONGA-CHECK %s // RUN: %clang -### -target amdgcn -x cl -S -emit-llvm -mcpu=iceland %s -o - 2>&1 | FileCheck --check-prefix=ICELAND-CHECK %s // RUN: %clang -### -target amdgcn -x cl -S -emit-llvm -mcpu=carrizo %s -o - 2>&1 | FileCheck --check-prefix=CARRIZO-CHECK %s +// RUN: %clang -### -target amdgcn -x cl -S -emit-llvm -mcpu=fiji %s -o - 2>&1 | FileCheck --check-prefix=FIJI-CHECK %s +// RUN: %clang -### -target amdgcn -x cl -S -emit-llvm -mcpu=stoney %s -o - 2>&1 | FileCheck --check-prefix=STONEY-CHECK %s // R600-CHECK: "-target-cpu" "r600" // RS880-CHECK: "-target-cpu" "rs880" @@ -66,3 +68,5 @@ t// Check that -mcpu works for all supported GPUs // TONGA-CHECK: "-target-cpu" "tonga" // ICELAND-CHECK: "-target-cpu" "iceland" // CARRIZO-CHECK: "-target-cpu" "carrizo" +// FIJI-CHECK: "-target-cpu" "fiji" +// STONEY-CHECK: "-target-cpu" "stoney" |