[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / hip-unbundle-preproc.hipi
bloba56cafea0e8d4e2accabc634c0f996660a9b3df1
1 // RUN: %clang -### --target=x86_64-unknown-linux-gnu \
2 // RUN:   --no-offload-new-driver --offload-arch=gfx803 -nogpulib \
3 // RUN:   -x hip-cpp-output %s 2>&1 | FileCheck %s
5 // RUN: %clang -### --target=x86_64-unknown-linux-gnu \
6 // RUN:   --no-offload-new-driver --offload-arch=gfx803 -nogpulib \
7 // RUN:   %s 2>&1 | FileCheck %s
9 // CHECK: {{".*clang-offload-bundler.*"}} {{.*}}"-output=[[HOST_PP:.*hipi]]" "-output=[[DEV_PP:.*hipi]]" "-unbundle"
10 // CHECK: {{".*clang.*"}} "-cc1" {{.*}}"-target-cpu" "gfx803" {{.*}}"-o" "[[DEV_O:.*o]]" {{.*}}"[[DEV_PP]]"
11 // CHECK: {{".*lld.*"}} {{.*}}"-o" "[[DEV_ISA:.*]]" "[[DEV_O]]"
12 // CHECK: {{".*clang-offload-bundler.*"}} {{.*}}"-input={{.*}}" "-input=[[DEV_ISA]]" "-output=[[FATBIN:.*]]"
13 // CHECK: {{".*clang.*"}} {{.*}}"-triple" "x86_64-unknown-linux-gnu"{{.*}} "-fcuda-include-gpubinary" "[[FATBIN]]" {{.*}}"-o" "[[HOST_O:.*o]]" {{.*}}"[[HOST_PP]]"
14 // CHECK: {{".*ld.*"}} {{.*}}"[[HOST_O]]"
16 // RUN: %clang -### --target=x86_64-unknown-linux-gnu \
17 // RUN:   --no-offload-new-driver --offload-arch=gfx803 -nogpulib -fgpu-rdc \
18 // RUN:   %s 2>&1 | FileCheck -check-prefix=RDC %s
20 // RDC: {{".*clang-offload-bundler.*"}} {{.*}}"-output=[[HOST_PP:.*hipi]]" "-output=[[DEV_PP:.*hipi]]" "-unbundle"
21 // RDC: {{".*clang.*"}} {{.*}}"-triple" "x86_64-unknown-linux-gnu"{{.*}} "-o" "[[HOST_O:.*o]]" {{.*}}"[[HOST_PP]]"
22 // RDC: {{".*clang-offload-bundler.*"}} {{.*}}"-output=[[HOST_PP:.*hipi]]" "-output=[[DEV_PP:.*hipi]]" "-unbundle"
23 // RDC: {{".*clang.*"}} "-cc1" {{.*}}"-target-cpu" "gfx803" {{.*}}"-o" "[[DEV_BC:.*bc]]" {{.*}}"[[DEV_PP]]"
24 // RDC: {{".*lld.*"}} {{.*}}"-o" "[[DEV_ISA:.*]]" "[[DEV_BC]]"
25 // RDC: {{".*clang-offload-bundler.*"}} {{.*}}"-input={{.*}}" "-input=[[DEV_ISA]]" "-output=[[FATBIN:.*]]"
26 // RDC: {{".*clang.*"}} "-o" "[[FATBIN_O:.*o]]"
27 // RDC: {{".*ld.*"}} {{.*}}"[[HOST_O]]" "[[FATBIN_O]]"