1f4a2713aSLionel Sambuc// Check that -mcpu works for all supported GPUs 2f4a2713aSLionel Sambuc 3f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=r600 %s -o - 2>&1 | FileCheck --check-prefix=R600-CHECK %s 4f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv630 %s -o - 2>&1 | FileCheck --check-prefix=R600-CHECK %s 5f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv635 %s -o - 2>&1 | FileCheck --check-prefix=R600-CHECK %s 6f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv610 %s -o - 2>&1 | FileCheck --check-prefix=RS880-CHECK %s 7f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv620 %s -o - 2>&1 | FileCheck --check-prefix=RS880-CHECK %s 8f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rs780 %s -o - 2>&1 | FileCheck --check-prefix=RS880-CHECK %s 9f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rs880 %s -o - 2>&1 | FileCheck --check-prefix=RS880-CHECK %s 10f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv670 %s -o - 2>&1 | FileCheck --check-prefix=RV670-CHECK %s 11f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv710 %s -o - 2>&1 | FileCheck --check-prefix=RV710-CHECK %s 12f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv730 %s -o - 2>&1 | FileCheck --check-prefix=RV730-CHECK %s 13f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv740 %s -o - 2>&1 | FileCheck --check-prefix=RV770-CHECK %s 14f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=rv770 %s -o - 2>&1 | FileCheck --check-prefix=RV770-CHECK %s 15f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=palm %s -o - 2>&1 | FileCheck --check-prefix=CEDAR-CHECK %s 16f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=cedar %s -o - 2>&1 | FileCheck --check-prefix=CEDAR-CHECK %s 17f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=sumo %s -o - 2>&1 | FileCheck --check-prefix=SUMO-CHECK %s 18f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=sumo2 %s -o - 2>&1 | FileCheck --check-prefix=SUMO-CHECK %s 19f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=redwood %s -o - 2>&1 | FileCheck --check-prefix=REDWOOD-CHECK %s 20f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=juniper %s -o - 2>&1 | FileCheck --check-prefix=JUNIPER-CHECK %s 21f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=juniper %s -o - 2>&1 | FileCheck --check-prefix=JUNIPER-CHECK %s 22f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=hemlock %s -o - 2>&1 | FileCheck --check-prefix=CYPRESS-CHECK %s 23f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=cypress %s -o - 2>&1 | FileCheck --check-prefix=CYPRESS-CHECK %s 24f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=barts %s -o - 2>&1 | FileCheck --check-prefix=BARTS-CHECK %s 25f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=turks %s -o - 2>&1 | FileCheck --check-prefix=TURKS-CHECK %s 26f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=caicos %s -o - 2>&1 | FileCheck --check-prefix=CAICOS-CHECK %s 27f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=cayman %s -o - 2>&1 | FileCheck --check-prefix=CAYMAN-CHECK %s 28f4a2713aSLionel Sambuc// RUN: %clang -### -target r600 -x cl -S -emit-llvm -mcpu=aruba %s -o - 2>&1 | FileCheck --check-prefix=CAYMAN-CHECK %s 29*0a6a1f1dSLionel Sambuc// RUN: %clang -### -target amdgcn -x cl -S -emit-llvm -mcpu=tahiti %s -o - 2>&1 | FileCheck --check-prefix=TAHITI-CHECK %s 30*0a6a1f1dSLionel Sambuc// RUN: %clang -### -target amdgcn -x cl -S -emit-llvm -mcpu=pitcairn %s -o - 2>&1 | FileCheck --check-prefix=PITCAIRN-CHECK %s 31*0a6a1f1dSLionel Sambuc// RUN: %clang -### -target amdgcn -x cl -S -emit-llvm -mcpu=verde %s -o - 2>&1 | FileCheck --check-prefix=VERDE-CHECK %s 32*0a6a1f1dSLionel Sambuc// RUN: %clang -### -target amdgcn -x cl -S -emit-llvm -mcpu=oland %s -o - 2>&1 | FileCheck --check-prefix=OLAND-CHECK %s 33*0a6a1f1dSLionel Sambuc// RUN: %clang -### -target amdgcn -x cl -S -emit-llvm -mcpu=bonaire %s -o - 2>&1 | FileCheck --check-prefix=BONAIRE-CHECK %s 34*0a6a1f1dSLionel Sambuc// RUN: %clang -### -target amdgcn -x cl -S -emit-llvm -mcpu=kabini %s -o - 2>&1 | FileCheck --check-prefix=KABINI-CHECK %s 35*0a6a1f1dSLionel Sambuc// RUN: %clang -### -target amdgcn -x cl -S -emit-llvm -mcpu=kaveri %s -o - 2>&1 | FileCheck --check-prefix=KAVERI-CHECK %s 36*0a6a1f1dSLionel Sambuc// RUN: %clang -### -target amdgcn -x cl -S -emit-llvm -mcpu=hawaii %s -o - 2>&1 | FileCheck --check-prefix=HAWAII-CHECK %s 37*0a6a1f1dSLionel Sambuc// RUN: %clang -### -target amdgcn -x cl -S -emit-llvm -mcpu=mullins %s -o - 2>&1 | FileCheck --check-prefix=MULLINS-CHECK %s 38f4a2713aSLionel Sambuc 39f4a2713aSLionel Sambuc// R600-CHECK: "-target-cpu" "r600" 40f4a2713aSLionel Sambuc// RS880-CHECK: "-target-cpu" "rs880" 41f4a2713aSLionel Sambuc// RV670-CHECK: "-target-cpu" "rv670" 42f4a2713aSLionel Sambuc// RV710-CHECK: "-target-cpu" "rv710" 43f4a2713aSLionel Sambuc// RV730-CHECK: "-target-cpu" "rv730" 44f4a2713aSLionel Sambuc// RV770-CHECK: "-target-cpu" "rv770" 45f4a2713aSLionel Sambuc// CEDAR-CHECK: "-target-cpu" "cedar" 46f4a2713aSLionel Sambuc// REDWOOD-CHECK: "-target-cpu" "redwood" 47f4a2713aSLionel Sambuc// SUMO-CHECK: "-target-cpu" "sumo" 48f4a2713aSLionel Sambuc// JUNIPER-CHECK: "-target-cpu" "juniper" 49f4a2713aSLionel Sambuc// CYPRESS-CHECK: "-target-cpu" "cypress" 50f4a2713aSLionel Sambuc// BARTS-CHECK: "-target-cpu" "barts" 51f4a2713aSLionel Sambuc// TURKS-CHECK: "-target-cpu" "turks" 52f4a2713aSLionel Sambuc// CAICOS-CHECK: "-target-cpu" "caicos" 53f4a2713aSLionel Sambuc// CAYMAN-CHECK: "-target-cpu" "cayman" 54f4a2713aSLionel Sambuc// TAHITI-CHECK: "-target-cpu" "tahiti" 55f4a2713aSLionel Sambuc// PITCAIRN-CHECK: "-target-cpu" "pitcairn" 56f4a2713aSLionel Sambuc// VERDE-CHECK: "-target-cpu" "verde" 57f4a2713aSLionel Sambuc// OLAND-CHECK: "-target-cpu" "oland" 58f4a2713aSLionel Sambuc// BONAIRE-CHECK: "-target-cpu" "bonaire" 59f4a2713aSLionel Sambuc// KABINI-CHECK: "-target-cpu" "kabini" 60f4a2713aSLionel Sambuc// KAVERI-CHECK: "-target-cpu" "kaveri" 61f4a2713aSLionel Sambuc// HAWAII-CHECK: "-target-cpu" "hawaii" 62*0a6a1f1dSLionel Sambuc// MULLINS-CHECK: "-target-cpu" "mullins" 63