annotate clang/test/Driver/amdgpu-mcpu.cl @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children 2e18cbf3894f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // Check that -mcpu works for all supported GPUs.
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 //
anatofuz
parents:
diff changeset
4 // R600-based processors.
anatofuz
parents:
diff changeset
5 //
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 // RUN: %clang -### -target r600 -mcpu=r600 %s 2>&1 | FileCheck --check-prefix=R600 %s
anatofuz
parents:
diff changeset
8 // RUN: %clang -### -target r600 -mcpu=rv630 %s 2>&1 | FileCheck --check-prefix=R600 %s
anatofuz
parents:
diff changeset
9 // RUN: %clang -### -target r600 -mcpu=rv635 %s 2>&1 | FileCheck --check-prefix=R600 %s
anatofuz
parents:
diff changeset
10 // RUN: %clang -### -target r600 -mcpu=r630 %s 2>&1 | FileCheck --check-prefix=R630 %s
anatofuz
parents:
diff changeset
11 // RUN: %clang -### -target r600 -mcpu=rs780 %s 2>&1 | FileCheck --check-prefix=RS880 %s
anatofuz
parents:
diff changeset
12 // RUN: %clang -### -target r600 -mcpu=rs880 %s 2>&1 | FileCheck --check-prefix=RS880 %s
anatofuz
parents:
diff changeset
13 // RUN: %clang -### -target r600 -mcpu=rv610 %s 2>&1 | FileCheck --check-prefix=RS880 %s
anatofuz
parents:
diff changeset
14 // RUN: %clang -### -target r600 -mcpu=rv620 %s 2>&1 | FileCheck --check-prefix=RS880 %s
anatofuz
parents:
diff changeset
15 // RUN: %clang -### -target r600 -mcpu=rv670 %s 2>&1 | FileCheck --check-prefix=RV670 %s
anatofuz
parents:
diff changeset
16 // RUN: %clang -### -target r600 -mcpu=rv710 %s 2>&1 | FileCheck --check-prefix=RV710 %s
anatofuz
parents:
diff changeset
17 // RUN: %clang -### -target r600 -mcpu=rv730 %s 2>&1 | FileCheck --check-prefix=RV730 %s
anatofuz
parents:
diff changeset
18 // RUN: %clang -### -target r600 -mcpu=rv740 %s 2>&1 | FileCheck --check-prefix=RV770 %s
anatofuz
parents:
diff changeset
19 // RUN: %clang -### -target r600 -mcpu=rv770 %s 2>&1 | FileCheck --check-prefix=RV770 %s
anatofuz
parents:
diff changeset
20 // RUN: %clang -### -target r600 -mcpu=cedar %s 2>&1 | FileCheck --check-prefix=CEDAR %s
anatofuz
parents:
diff changeset
21 // RUN: %clang -### -target r600 -mcpu=palm %s 2>&1 | FileCheck --check-prefix=CEDAR %s
anatofuz
parents:
diff changeset
22 // RUN: %clang -### -target r600 -mcpu=cypress %s 2>&1 | FileCheck --check-prefix=CYPRESS %s
anatofuz
parents:
diff changeset
23 // RUN: %clang -### -target r600 -mcpu=hemlock %s 2>&1 | FileCheck --check-prefix=CYPRESS %s
anatofuz
parents:
diff changeset
24 // RUN: %clang -### -target r600 -mcpu=juniper %s 2>&1 | FileCheck --check-prefix=JUNIPER %s
anatofuz
parents:
diff changeset
25 // RUN: %clang -### -target r600 -mcpu=redwood %s 2>&1 | FileCheck --check-prefix=REDWOOD %s
anatofuz
parents:
diff changeset
26 // RUN: %clang -### -target r600 -mcpu=sumo %s 2>&1 | FileCheck --check-prefix=SUMO %s
anatofuz
parents:
diff changeset
27 // RUN: %clang -### -target r600 -mcpu=sumo2 %s 2>&1 | FileCheck --check-prefix=SUMO %s
anatofuz
parents:
diff changeset
28 // RUN: %clang -### -target r600 -mcpu=barts %s 2>&1 | FileCheck --check-prefix=BARTS %s
anatofuz
parents:
diff changeset
29 // RUN: %clang -### -target r600 -mcpu=caicos %s 2>&1 | FileCheck --check-prefix=CAICOS %s
anatofuz
parents:
diff changeset
30 // RUN: %clang -### -target r600 -mcpu=aruba %s 2>&1 | FileCheck --check-prefix=CAYMAN %s
anatofuz
parents:
diff changeset
31 // RUN: %clang -### -target r600 -mcpu=cayman %s 2>&1 | FileCheck --check-prefix=CAYMAN %s
anatofuz
parents:
diff changeset
32 // RUN: %clang -### -target r600 -mcpu=turks %s 2>&1 | FileCheck --check-prefix=TURKS %s
anatofuz
parents:
diff changeset
33
anatofuz
parents:
diff changeset
34 // R600: "-target-cpu" "r600"
anatofuz
parents:
diff changeset
35 // R630: "-target-cpu" "r630"
anatofuz
parents:
diff changeset
36 // RS880: "-target-cpu" "rs880"
anatofuz
parents:
diff changeset
37 // RV670: "-target-cpu" "rv670"
anatofuz
parents:
diff changeset
38 // RV710: "-target-cpu" "rv710"
anatofuz
parents:
diff changeset
39 // RV730: "-target-cpu" "rv730"
anatofuz
parents:
diff changeset
40 // RV770: "-target-cpu" "rv770"
anatofuz
parents:
diff changeset
41 // CEDAR: "-target-cpu" "cedar"
anatofuz
parents:
diff changeset
42 // CYPRESS: "-target-cpu" "cypress"
anatofuz
parents:
diff changeset
43 // JUNIPER: "-target-cpu" "juniper"
anatofuz
parents:
diff changeset
44 // REDWOOD: "-target-cpu" "redwood"
anatofuz
parents:
diff changeset
45 // SUMO: "-target-cpu" "sumo"
anatofuz
parents:
diff changeset
46 // BARTS: "-target-cpu" "barts"
anatofuz
parents:
diff changeset
47 // CAICOS: "-target-cpu" "caicos"
anatofuz
parents:
diff changeset
48 // CAYMAN: "-target-cpu" "cayman"
anatofuz
parents:
diff changeset
49 // TURKS: "-target-cpu" "turks"
anatofuz
parents:
diff changeset
50
anatofuz
parents:
diff changeset
51 //
anatofuz
parents:
diff changeset
52 // AMDGCN-based processors.
anatofuz
parents:
diff changeset
53 //
anatofuz
parents:
diff changeset
54
anatofuz
parents:
diff changeset
55 // RUN: %clang -### -target amdgcn %s 2>&1 | FileCheck --check-prefix=GCNDEFAULT %s
anatofuz
parents:
diff changeset
56 // RUN: %clang -### -target amdgcn -mcpu=gfx600 %s 2>&1 | FileCheck --check-prefix=GFX600 %s
anatofuz
parents:
diff changeset
57 // RUN: %clang -### -target amdgcn -mcpu=tahiti %s 2>&1 | FileCheck --check-prefix=TAHITI %s
anatofuz
parents:
diff changeset
58 // RUN: %clang -### -target amdgcn -mcpu=gfx601 %s 2>&1 | FileCheck --check-prefix=GFX601 %s
anatofuz
parents:
diff changeset
59 // RUN: %clang -### -target amdgcn -mcpu=hainan %s 2>&1 | FileCheck --check-prefix=HAINAN %s
anatofuz
parents:
diff changeset
60 // RUN: %clang -### -target amdgcn -mcpu=oland %s 2>&1 | FileCheck --check-prefix=OLAND %s
anatofuz
parents:
diff changeset
61 // RUN: %clang -### -target amdgcn -mcpu=pitcairn %s 2>&1 | FileCheck --check-prefix=PITCAIRN %s
anatofuz
parents:
diff changeset
62 // RUN: %clang -### -target amdgcn -mcpu=verde %s 2>&1 | FileCheck --check-prefix=VERDE %s
anatofuz
parents:
diff changeset
63 // RUN: %clang -### -target amdgcn -mcpu=gfx700 %s 2>&1 | FileCheck --check-prefix=GFX700 %s
anatofuz
parents:
diff changeset
64 // RUN: %clang -### -target amdgcn -mcpu=kaveri %s 2>&1 | FileCheck --check-prefix=KAVERI %s
anatofuz
parents:
diff changeset
65 // RUN: %clang -### -target amdgcn -mcpu=gfx701 %s 2>&1 | FileCheck --check-prefix=GFX701 %s
anatofuz
parents:
diff changeset
66 // RUN: %clang -### -target amdgcn -mcpu=hawaii %s 2>&1 | FileCheck --check-prefix=HAWAII %s
anatofuz
parents:
diff changeset
67 // RUN: %clang -### -target amdgcn -mcpu=gfx702 %s 2>&1 | FileCheck --check-prefix=GFX702 %s
anatofuz
parents:
diff changeset
68 // RUN: %clang -### -target amdgcn -mcpu=gfx703 %s 2>&1 | FileCheck --check-prefix=GFX703 %s
anatofuz
parents:
diff changeset
69 // RUN: %clang -### -target amdgcn -mcpu=kabini %s 2>&1 | FileCheck --check-prefix=KABINI %s
anatofuz
parents:
diff changeset
70 // RUN: %clang -### -target amdgcn -mcpu=mullins %s 2>&1 | FileCheck --check-prefix=MULLINS %s
anatofuz
parents:
diff changeset
71 // RUN: %clang -### -target amdgcn -mcpu=gfx704 %s 2>&1 | FileCheck --check-prefix=GFX704 %s
anatofuz
parents:
diff changeset
72 // RUN: %clang -### -target amdgcn -mcpu=bonaire %s 2>&1 | FileCheck --check-prefix=BONAIRE %s
anatofuz
parents:
diff changeset
73 // RUN: %clang -### -target amdgcn -mcpu=gfx801 %s 2>&1 | FileCheck --check-prefix=GFX801 %s
anatofuz
parents:
diff changeset
74 // RUN: %clang -### -target amdgcn -mcpu=carrizo %s 2>&1 | FileCheck --check-prefix=CARRIZO %s
anatofuz
parents:
diff changeset
75 // RUN: %clang -### -target amdgcn -mcpu=gfx802 %s 2>&1 | FileCheck --check-prefix=GFX802 %s
anatofuz
parents:
diff changeset
76 // RUN: %clang -### -target amdgcn -mcpu=iceland %s 2>&1 | FileCheck --check-prefix=ICELAND %s
anatofuz
parents:
diff changeset
77 // RUN: %clang -### -target amdgcn -mcpu=tonga %s 2>&1 | FileCheck --check-prefix=TONGA %s
anatofuz
parents:
diff changeset
78 // RUN: %clang -### -target amdgcn -mcpu=gfx803 %s 2>&1 | FileCheck --check-prefix=GFX803 %s
anatofuz
parents:
diff changeset
79 // RUN: %clang -### -target amdgcn -mcpu=fiji %s 2>&1 | FileCheck --check-prefix=FIJI %s
anatofuz
parents:
diff changeset
80 // RUN: %clang -### -target amdgcn -mcpu=polaris10 %s 2>&1 | FileCheck --check-prefix=POLARIS10 %s
anatofuz
parents:
diff changeset
81 // RUN: %clang -### -target amdgcn -mcpu=polaris11 %s 2>&1 | FileCheck --check-prefix=POLARIS11 %s
anatofuz
parents:
diff changeset
82 // RUN: %clang -### -target amdgcn -mcpu=gfx810 %s 2>&1 | FileCheck --check-prefix=GFX810 %s
anatofuz
parents:
diff changeset
83 // RUN: %clang -### -target amdgcn -mcpu=stoney %s 2>&1 | FileCheck --check-prefix=STONEY %s
anatofuz
parents:
diff changeset
84 // RUN: %clang -### -target amdgcn -mcpu=gfx900 %s 2>&1 | FileCheck --check-prefix=GFX900 %s
anatofuz
parents:
diff changeset
85 // RUN: %clang -### -target amdgcn -mcpu=gfx902 %s 2>&1 | FileCheck --check-prefix=GFX902 %s
anatofuz
parents:
diff changeset
86 // RUN: %clang -### -target amdgcn -mcpu=gfx904 %s 2>&1 | FileCheck --check-prefix=GFX904 %s
anatofuz
parents:
diff changeset
87 // RUN: %clang -### -target amdgcn -mcpu=gfx906 %s 2>&1 | FileCheck --check-prefix=GFX906 %s
anatofuz
parents:
diff changeset
88 // RUN: %clang -### -target amdgcn -mcpu=gfx908 %s 2>&1 | FileCheck --check-prefix=GFX908 %s
anatofuz
parents:
diff changeset
89 // RUN: %clang -### -target amdgcn -mcpu=gfx909 %s 2>&1 | FileCheck --check-prefix=GFX909 %s
anatofuz
parents:
diff changeset
90 // RUN: %clang -### -target amdgcn -mcpu=gfx1010 %s 2>&1 | FileCheck --check-prefix=GFX1010 %s
anatofuz
parents:
diff changeset
91 // RUN: %clang -### -target amdgcn -mcpu=gfx1011 %s 2>&1 | FileCheck --check-prefix=GFX1011 %s
anatofuz
parents:
diff changeset
92 // RUN: %clang -### -target amdgcn -mcpu=gfx1012 %s 2>&1 | FileCheck --check-prefix=GFX1012 %s
anatofuz
parents:
diff changeset
93
anatofuz
parents:
diff changeset
94 // GCNDEFAULT-NOT: -target-cpu
anatofuz
parents:
diff changeset
95 // GFX600: "-target-cpu" "gfx600"
anatofuz
parents:
diff changeset
96 // TAHITI: "-target-cpu" "tahiti"
anatofuz
parents:
diff changeset
97 // GFX601: "-target-cpu" "gfx601"
anatofuz
parents:
diff changeset
98 // HAINAN: "-target-cpu" "hainan"
anatofuz
parents:
diff changeset
99 // OLAND: "-target-cpu" "oland"
anatofuz
parents:
diff changeset
100 // PITCAIRN: "-target-cpu" "pitcairn"
anatofuz
parents:
diff changeset
101 // VERDE: "-target-cpu" "verde"
anatofuz
parents:
diff changeset
102 // GFX700: "-target-cpu" "gfx700"
anatofuz
parents:
diff changeset
103 // KAVERI: "-target-cpu" "kaveri"
anatofuz
parents:
diff changeset
104 // GFX701: "-target-cpu" "gfx701"
anatofuz
parents:
diff changeset
105 // HAWAII: "-target-cpu" "hawaii"
anatofuz
parents:
diff changeset
106 // GFX702: "-target-cpu" "gfx702"
anatofuz
parents:
diff changeset
107 // GFX703: "-target-cpu" "gfx703"
anatofuz
parents:
diff changeset
108 // KABINI: "-target-cpu" "kabini"
anatofuz
parents:
diff changeset
109 // MULLINS: "-target-cpu" "mullins"
anatofuz
parents:
diff changeset
110 // GFX704: "-target-cpu" "gfx704"
anatofuz
parents:
diff changeset
111 // BONAIRE: "-target-cpu" "bonaire"
anatofuz
parents:
diff changeset
112 // GFX801: "-target-cpu" "gfx801"
anatofuz
parents:
diff changeset
113 // CARRIZO: "-target-cpu" "carrizo"
anatofuz
parents:
diff changeset
114 // GFX802: "-target-cpu" "gfx802"
anatofuz
parents:
diff changeset
115 // ICELAND: "-target-cpu" "iceland"
anatofuz
parents:
diff changeset
116 // TONGA: "-target-cpu" "tonga"
anatofuz
parents:
diff changeset
117 // GFX803: "-target-cpu" "gfx803"
anatofuz
parents:
diff changeset
118 // FIJI: "-target-cpu" "fiji"
anatofuz
parents:
diff changeset
119 // POLARIS10: "-target-cpu" "polaris10"
anatofuz
parents:
diff changeset
120 // POLARIS11: "-target-cpu" "polaris11"
anatofuz
parents:
diff changeset
121 // GFX810: "-target-cpu" "gfx810"
anatofuz
parents:
diff changeset
122 // STONEY: "-target-cpu" "stoney"
anatofuz
parents:
diff changeset
123 // GFX900: "-target-cpu" "gfx900"
anatofuz
parents:
diff changeset
124 // GFX902: "-target-cpu" "gfx902"
anatofuz
parents:
diff changeset
125 // GFX904: "-target-cpu" "gfx904"
anatofuz
parents:
diff changeset
126 // GFX906: "-target-cpu" "gfx906"
anatofuz
parents:
diff changeset
127 // GFX908: "-target-cpu" "gfx908"
anatofuz
parents:
diff changeset
128 // GFX909: "-target-cpu" "gfx909"
anatofuz
parents:
diff changeset
129 // GFX1010: "-target-cpu" "gfx1010"
anatofuz
parents:
diff changeset
130 // GFX1011: "-target-cpu" "gfx1011"
anatofuz
parents:
diff changeset
131 // GFX1012: "-target-cpu" "gfx1012"