annotate clang/test/Driver/hip-save-temps.hip @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children 0572611fdcc8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // REQUIRES: clang-driver
anatofuz
parents:
diff changeset
2 // REQUIRES: x86-registered-target
anatofuz
parents:
diff changeset
3 // REQUIRES: amdgpu-registered-target
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 // -fno-gpu-rdc without -o
anatofuz
parents:
diff changeset
6 // RUN: %clang -### -target x86_64-linux-gnu -nogpulib -save-temps \
anatofuz
parents:
diff changeset
7 // RUN: -x hip --cuda-gpu-arch=gfx900 %s 2>&1 | \
anatofuz
parents:
diff changeset
8 // RUN: FileCheck -check-prefixes=CHECK,NORDC,NOUT %s
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 // -fno-gpu-rdc with -o
anatofuz
parents:
diff changeset
11 // RUN: %clang -### -target x86_64-linux-gnu -nogpulib -save-temps \
anatofuz
parents:
diff changeset
12 // RUN: -o executable -x hip --cuda-gpu-arch=gfx900 %s 2>&1 | \
anatofuz
parents:
diff changeset
13 // RUN: FileCheck -check-prefixes=CHECK,NORDC,WOUT %s
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 // -fgpu-rdc without -o
anatofuz
parents:
diff changeset
16 // RUN: %clang -### -target x86_64-linux-gnu -nogpulib -save-temps \
anatofuz
parents:
diff changeset
17 // RUN: -fgpu-rdc -x hip --cuda-gpu-arch=gfx900 %s 2>&1 | \
anatofuz
parents:
diff changeset
18 // RUN: FileCheck -check-prefixes=CHECK,RDC,RDC-NOUT,NOUT %s
anatofuz
parents:
diff changeset
19
anatofuz
parents:
diff changeset
20 // -fgpu-rdc with -o
anatofuz
parents:
diff changeset
21 // RUN: %clang -### -target x86_64-linux-gnu -nogpulib -save-temps \
anatofuz
parents:
diff changeset
22 // RUN: -o executable -fgpu-rdc -x hip --cuda-gpu-arch=gfx900 %s 2>&1 | \
anatofuz
parents:
diff changeset
23 // RUN: FileCheck -check-prefixes=CHECK,RDC,RDC-WOUT,WOUT %s
anatofuz
parents:
diff changeset
24
anatofuz
parents:
diff changeset
25 // CHECK: {{.*}}clang{{.*}}"-o" "hip-save-temps-hip-amdgcn-amd-amdhsa-gfx900.cui"
anatofuz
parents:
diff changeset
26 // CHECK: {{.*}}llvm-link{{.*}}"-o" "hip-save-temps-hip-amdgcn-amd-amdhsa-gfx900-linked.bc"
anatofuz
parents:
diff changeset
27 // CHECK: {{.*}}opt{{.*}}"-o" "hip-save-temps-hip-amdgcn-amd-amdhsa-gfx900-optimized.bc"
anatofuz
parents:
diff changeset
28 // CHECK: {{.*}}llc{{.*}}"-filetype=asm"{{.*}}"-o" "hip-save-temps-hip-amdgcn-amd-amdhsa-gfx900.s"
anatofuz
parents:
diff changeset
29 // CHECK: {{.*}}llc{{.*}}"-filetype=obj"{{.*}}"-o" "hip-save-temps-hip-amdgcn-amd-amdhsa-gfx900.o"
anatofuz
parents:
diff changeset
30 // NORDC: {{.*}}lld{{.*}}"-o" "hip-save-temps-hip-amdgcn-amd-amdhsa-gfx900.out"
anatofuz
parents:
diff changeset
31 // RDC: {{.*}}lld{{.*}}"-o" "a.out-hip-amdgcn-amd-amdhsa-gfx900"
anatofuz
parents:
diff changeset
32 // NORDC: {{.*}}clang-offload-bundler{{.*}}"-outputs=hip-save-temps.hip-hip-amdgcn-amd-amdhsa.hipfb"
anatofuz
parents:
diff changeset
33 // CHECK: {{.*}}clang{{.*}}"-o" "hip-save-temps-host-x86_64-unknown-linux-gnu.cui"
anatofuz
parents:
diff changeset
34 // CHECK: {{.*}}clang{{.*}}"-o" "hip-save-temps-host-x86_64-unknown-linux-gnu.bc"
anatofuz
parents:
diff changeset
35 // CHECK: {{.*}}clang{{.*}}"-o" "hip-save-temps-host-x86_64-unknown-linux-gnu.s"
anatofuz
parents:
diff changeset
36 // CHECK: {{.*}}clang{{.*}}"-o" "hip-save-temps{{.*}}.o"
anatofuz
parents:
diff changeset
37 // RDC-NOUT: {{.*}}clang-offload-bundler{{.*}}"-outputs=a.out.hipfb"
anatofuz
parents:
diff changeset
38 // RDC-WOUT: {{.*}}clang-offload-bundler{{.*}}"-outputs=executable.hipfb"
anatofuz
parents:
diff changeset
39 // NOUT: {{.*}}ld{{.*}}"-o" "a.out"
anatofuz
parents:
diff changeset
40 // WOUT: {{.*}}ld{{.*}}"-o" "executable"
anatofuz
parents:
diff changeset
41