[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Driver / hip-unbundle-preproc.hipi
blobfecdfdbe7d143c2ca7a5a73db3ada73b83bd1c1f
1 // REQUIRES: amdgpu-registered-target
3 // RUN: %clang -### --target=x86_64-unknown-linux-gnu \
4 // RUN:   --offload-arch=gfx803 -nogpulib \
5 // RUN:   -x hip-cpp-output %s 2>&1 | FileCheck %s
7 // RUN: %clang -### --target=x86_64-unknown-linux-gnu \
8 // RUN:   --offload-arch=gfx803 -nogpulib \
9 // RUN:   %s 2>&1 | FileCheck %s
11 // CHECK: {{".*clang-offload-bundler.*"}} {{.*}}"-output=[[HOST_PP:.*hipi]]" "-output=[[DEV_PP:.*hipi]]" "-unbundle"
12 // CHECK: {{".*clang.*"}} "-cc1" {{.*}}"-target-cpu" "gfx803" {{.*}}"-o" "[[DEV_O:.*o]]" {{.*}}"[[DEV_PP]]"
13 // CHECK: {{".*lld.*"}} {{.*}}"-o" "[[DEV_ISA:.*]]" "[[DEV_O]]"
14 // CHECK: {{".*clang-offload-bundler.*"}} {{.*}}"-input={{.*}}" "-input=[[DEV_ISA]]" "-output=[[FATBIN:.*]]"
15 // CHECK: {{".*clang.*"}} {{.*}}"-triple" "x86_64-unknown-linux-gnu"{{.*}} "-fcuda-include-gpubinary" "[[FATBIN]]" {{.*}}"-o" "[[HOST_O:.*o]]" {{.*}}"[[HOST_PP]]"
16 // CHECK: {{".*ld.*"}} {{.*}}"[[HOST_O]]"
18 // RUN: %clang -### --target=x86_64-unknown-linux-gnu \
19 // RUN:   --offload-arch=gfx803 -nogpulib -fgpu-rdc \
20 // RUN:   %s 2>&1 | FileCheck -check-prefix=RDC %s
22 // RDC: {{".*clang-offload-bundler.*"}} {{.*}}"-output=[[HOST_PP:.*hipi]]" "-output=[[DEV_PP:.*hipi]]" "-unbundle"
23 // RDC: {{".*clang.*"}} {{.*}}"-triple" "x86_64-unknown-linux-gnu"{{.*}} "-o" "[[HOST_O:.*o]]" {{.*}}"[[HOST_PP]]"
24 // RDC: {{".*clang-offload-bundler.*"}} {{.*}}"-output=[[HOST_PP:.*hipi]]" "-output=[[DEV_PP:.*hipi]]" "-unbundle"
25 // RDC: {{".*clang.*"}} "-cc1" {{.*}}"-target-cpu" "gfx803" {{.*}}"-o" "[[DEV_BC:.*bc]]" {{.*}}"[[DEV_PP]]"
26 // RDC: {{".*lld.*"}} {{.*}}"-o" "[[DEV_ISA:.*]]" "[[DEV_BC]]"
27 // RDC: {{".*clang-offload-bundler.*"}} {{.*}}"-input={{.*}}" "-input=[[DEV_ISA]]" "-output=[[FATBIN:.*]]"
28 // RDC: {{".*llvm-mc.*"}} "-o" "[[FATBIN_O:.*o]]"
29 // RDC: {{".*ld.*"}} {{.*}}"[[HOST_O]]" "[[FATBIN_O]]"