|
146 | 146 | // CHECK-NOT: ".*opt" |
147 | 147 | // CHECK-NOT: ".*llc" |
148 | 148 | // CHECK: {{".*lld.*"}} {{.*}} "-plugin-opt=-amdgpu-internalize-symbols" |
149 | | -// CHECK-SAME: "-plugin-opt=mcpu=gfx900" |
150 | 149 | // CHECK-SAME: "--lto-partitions={{[0-9]+}}" |
| 150 | +// CHECK-SAME: "-plugin-opt=mcpu=gfx900" |
151 | 151 | // CHECK-SAME: "-o" "[[IMG_DEV2:.*.out]]" [[A_BC2]] [[B_BC2]] |
152 | 152 |
|
153 | 153 | // combine images generated into hip fat binary object |
|
162 | 162 | // LNX: [[LD:".*ld.*"]] {{.*}}"-o" "a.out" {{.*}} [[A_OBJ_HOST]] [[B_OBJ_HOST]] [[OBJBUNDLE]] |
163 | 163 | // MSVC: [[LD:".*lld-link.*"]] {{.*}}"-out:a.exe" {{.*}} [[A_OBJ_HOST]] [[B_OBJ_HOST]] [[OBJBUNDLE]] |
164 | 164 |
|
165 | | -// Check --flto-partitions |
| 165 | +// Check -flto-partitions |
166 | 166 |
|
167 | | -// RUN: %clang -### -fgpu-rdc --offload-arch=gfx90a -nogpulib -nogpuinc \ |
| 167 | +// RUN: %clang -### -fgpu-rdc --offload-arch=gfx90a -nogpulib -nogpuinc --no-offload-new-driver \ |
168 | 168 | // RUN: -L. -foffload-lto %s 2>&1 | FileCheck -check-prefix=LTO_DEFAULT %s |
169 | 169 | // LTO_DEFAULT: lld{{.*}}"--lto-partitions=8" |
170 | 170 |
|
171 | | -// RUN: %clang -### -fgpu-rdc --offload-arch=gfx90a -nogpulib -nogpuinc \ |
172 | | -// RUN: -L. -foffload-lto --flto-partitions=42 %s 2>&1 | FileCheck -check-prefix=LTO_PARTS %s |
| 171 | +// RUN: %clang -### -fgpu-rdc --offload-arch=gfx90a -nogpulib -nogpuinc --no-offload-new-driver \ |
| 172 | +// RUN: -L. -foffload-lto -flto-partitions=42 %s 2>&1 | FileCheck -check-prefix=LTO_PARTS %s |
173 | 173 | // LTO_PARTS: lld{{.*}}"--lto-partitions=42" |
174 | 174 |
|
175 | | -// RUN: not %clang -### -fgpu-rdc --offload-arch=gfx90a -nogpulib -nogpuinc \ |
176 | | -// RUN: -L. -foffload-lto --flto-partitions=a %s 2>&1 | FileCheck -check-prefix=LTO_PARTS_INV0 %s |
177 | | -// LTO_PARTS_INV0: clang: error: invalid integral value 'a' in '--flto-partitions=a' |
| 175 | +// RUN: not %clang -### -fgpu-rdc --offload-arch=gfx90a -nogpulib -nogpuinc --no-offload-new-driver \ |
| 176 | +// RUN: -L. -foffload-lto -flto-partitions=a %s 2>&1 | FileCheck -check-prefix=LTO_PARTS_INV0 %s |
| 177 | +// LTO_PARTS_INV0: clang: error: invalid integral value 'a' in '-flto-partitions=a' |
178 | 178 |
|
179 | | -// RUN: not %clang -### -fgpu-rdc --offload-arch=gfx90a -nogpulib -nogpuinc \ |
180 | | -// RUN: -L. -foffload-lto --flto-partitions=0 %s 2>&1 | FileCheck -check-prefix=LTO_PARTS_INV1 %s |
181 | | -// LTO_PARTS_INV1: clang: error: invalid integral value '0' in '--flto-partitions=0' |
| 179 | +// RUN: not %clang -### -fgpu-rdc --offload-arch=gfx90a -nogpulib -nogpuinc --no-offload-new-driver \ |
| 180 | +// RUN: -L. -foffload-lto -flto-partitions=0 %s 2>&1 | FileCheck -check-prefix=LTO_PARTS_INV1 %s |
| 181 | +// LTO_PARTS_INV1: clang: error: invalid integral value '0' in '-flto-partitions=0' |
0 commit comments