Skip to content

Commit 655f016

Browse files
committed
Improve bundling lit test with better action names and sanity checks
1 parent 35cf65f commit 655f016

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

clang/test/Driver/no-gpu-bundle-respected.hip

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
// RUN: %clang -ccc-print-phases -c -emit-llvm \
22
// RUN: --offload-arch=gfx900,gfx1030 -O3 -x hip %s \
3-
// RUN: 2>&1 | FileCheck %s --check-prefix=OFFLOAD
3+
// RUN: 2>&1 | FileCheck %s --check-prefix=BUNDLE
44

55
// RUN: %clang -ccc-print-phases -c -emit-llvm \
66
// RUN: --gpu-bundle-output --offload-arch=gfx900,gfx1030 -O3 -x hip %s \
7-
// RUN: 2>&1 | FileCheck %s --check-prefix=OFFLOAD
7+
// RUN: 2>&1 | FileCheck %s --check-prefix=BUNDLE
88

99
// RUN: %clang -ccc-print-phases -c -emit-llvm \
1010
// RUN: --no-gpu-bundle-output --offload-arch=gfx900,gfx1030 -O3 -x hip %s \
11-
// RUN: 2>&1 | FileCheck %s --check-prefix=OFFLOAD2
11+
// RUN: 2>&1 | FileCheck %s --check-prefixes=COMPILER,GFX1030,GFX900,OFFLOAD,NOBUNDLE
1212

13-
// OFFLOAD: clang-offload-bundler
14-
// OFFLOAD2-NOT: clang-offload-bundler
13+
// BUNDLE: clang-offload-bundler
14+
// NOBUNDLE-NOT: clang-offload-bundler
15+
16+
// COM: sanity checks
17+
// COMPILER: compiler
18+
// GFX1030: (device-hip, gfx1030)
19+
// GFX900: (device-hip, gfx900)
20+
// OFFLOAD: offload
1521

1622
int square(int num) {
1723
return num * num;

0 commit comments

Comments
 (0)