Skip to content

Commit 00abe86

Browse files
committed
update
1 parent 05c09d3 commit 00abe86

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

clang/test/Driver/hip-toolchain-rdc.hip

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,17 @@
165165
// Check --flto-partitions
166166

167167
// RUN: %clang -### -fgpu-rdc --offload-arch=gfx90a -nogpulib -nogpuinc \
168-
// RUN: -L. -flto --flto-partitions=42 %s 2>&1 | FileCheck -check-prefix=LTO_PARTS %s
168+
// RUN: -L. -foffload-lto %s 2>&1 | FileCheck -check-prefix=LTO_DEFAULT %s
169+
// LTO_DEFAULT: lld{{.*}}"--lto-partitions=8"
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
169173
// LTO_PARTS: lld{{.*}}"--lto-partitions=42"
170174

171175
// RUN: not %clang -### -fgpu-rdc --offload-arch=gfx90a -nogpulib -nogpuinc \
172-
// RUN: -L. -flto --flto-partitions=a %s 2>&1 | FileCheck -check-prefix=LTO_PARTS_INV0 %s
176+
// RUN: -L. -foffload-lto --flto-partitions=a %s 2>&1 | FileCheck -check-prefix=LTO_PARTS_INV0 %s
173177
// LTO_PARTS_INV0: clang: error: invalid integral value 'a' in '--flto-partitions=a'
174178

175179
// RUN: not %clang -### -fgpu-rdc --offload-arch=gfx90a -nogpulib -nogpuinc \
176-
// RUN: -L. -flto --flto-partitions=0 %s 2>&1 | FileCheck -check-prefix=LTO_PARTS_INV1 %s
180+
// RUN: -L. -foffload-lto --flto-partitions=0 %s 2>&1 | FileCheck -check-prefix=LTO_PARTS_INV1 %s
177181
// LTO_PARTS_INV1: clang: error: invalid integral value '0' in '--flto-partitions=0'

0 commit comments

Comments
 (0)