Mercurial > hg > CbC > CbC_llvm
comparison clang/test/Driver/hip-save-temps.hip @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 79ff65ed7e25 |
children | 1f2b6ac9f198 |
comparison
equal
deleted
inserted
replaced
232:70dce7da266c | 236:c4bab56944e8 |
---|---|
1 // REQUIRES: clang-driver | |
2 // REQUIRES: x86-registered-target | 1 // REQUIRES: x86-registered-target |
3 // REQUIRES: amdgpu-registered-target | 2 // REQUIRES: amdgpu-registered-target |
4 | 3 |
5 // -fno-gpu-rdc without -o with -c | 4 // -fno-gpu-rdc without -o with -c |
6 // RUN: %clang -### -target x86_64-linux-gnu -nogpulib -save-temps \ | 5 // RUN: %clang -### --target=x86_64-linux-gnu -nogpulib -save-temps \ |
7 // RUN: --cuda-gpu-arch=gfx900 -c %s 2>&1 | \ | 6 // RUN: --cuda-gpu-arch=gfx900 -c %s 2>&1 | \ |
8 // RUN: FileCheck -check-prefixes=CHECK,NORDC %s | 7 // RUN: FileCheck -check-prefixes=CHECK,NORDC %s |
9 | 8 |
10 // -fno-gpu-rdc without -o | 9 // -fno-gpu-rdc without -o |
11 // RUN: %clang -### -target x86_64-linux-gnu -nogpulib -save-temps \ | 10 // RUN: %clang -### --target=x86_64-linux-gnu -nogpulib -save-temps \ |
12 // RUN: --cuda-gpu-arch=gfx900 %s 2>&1 | \ | 11 // RUN: --cuda-gpu-arch=gfx900 %s 2>&1 | \ |
13 // RUN: FileCheck -check-prefixes=CHECK,NORDC,NOUT %s | 12 // RUN: FileCheck -check-prefixes=CHECK,NORDC,NOUT %s |
14 | 13 |
15 // -fno-gpu-rdc with -o | 14 // -fno-gpu-rdc with -o |
16 // RUN: %clang -### -target x86_64-linux-gnu -nogpulib -save-temps \ | 15 // RUN: %clang -### --target=x86_64-linux-gnu -nogpulib -save-temps \ |
17 // RUN: -o executable --cuda-gpu-arch=gfx900 %s 2>&1 | \ | 16 // RUN: -o executable --cuda-gpu-arch=gfx900 %s 2>&1 | \ |
18 // RUN: FileCheck -check-prefixes=CHECK,NORDC,WOUT %s | 17 // RUN: FileCheck -check-prefixes=CHECK,NORDC,WOUT %s |
19 | 18 |
20 // -fgpu-rdc without -o with -c | 19 // -fgpu-rdc without -o with -c |
21 // RUN: %clang -### -target x86_64-linux-gnu -nogpulib -save-temps \ | 20 // RUN: %clang -### --target=x86_64-linux-gnu -nogpulib -save-temps \ |
22 // RUN: -fgpu-rdc --cuda-gpu-arch=gfx900 -c %s 2>&1 | \ | 21 // RUN: -fgpu-rdc --cuda-gpu-arch=gfx900 -c %s 2>&1 | \ |
23 // RUN: FileCheck -check-prefixes=CHECK,RDC,RDCC %s | 22 // RUN: FileCheck -check-prefixes=CHECK,RDC,RDCC %s |
24 | 23 |
25 // -fgpu-rdc without -o | 24 // -fgpu-rdc without -o |
26 // RUN: %clang -### -target x86_64-linux-gnu -nogpulib -save-temps \ | 25 // RUN: %clang -### --target=x86_64-linux-gnu -nogpulib -save-temps \ |
27 // RUN: -fgpu-rdc --cuda-gpu-arch=gfx900 %s 2>&1 | \ | 26 // RUN: -fgpu-rdc --cuda-gpu-arch=gfx900 %s 2>&1 | \ |
28 // RUN: FileCheck -check-prefixes=CHECK,RDC,RDCL,NOUT %s | 27 // RUN: FileCheck -check-prefixes=CHECK,RDC,RDCL,NOUT %s |
29 | 28 |
30 // -fgpu-rdc with -o | 29 // -fgpu-rdc with -o |
31 // UN: %clang -### -target x86_64-linux-gnu -nogpulib -save-temps \ | 30 // UN: %clang -### --target=x86_64-linux-gnu -nogpulib -save-temps \ |
32 // UN: -o executable -fgpu-rdc --cuda-gpu-arch=gfx900 %s 2>&1 | \ | 31 // UN: -o executable -fgpu-rdc --cuda-gpu-arch=gfx900 %s 2>&1 | \ |
33 // UN: FileCheck -check-prefixes=CHECK,RDC,RDCL,WOUT %s | 32 // UN: FileCheck -check-prefixes=CHECK,RDC,RDCL,WOUT %s |
34 | 33 |
35 // -fgpu-rdc host object path | 34 // -fgpu-rdc host object path |
36 // RDCL: "{{.*clang.*}}" "-cc1" {{.*}} "-E" {{.*}} "-o" "hip-save-temps-host-x86_64-unknown-linux-gnu.cui" | 35 // RDCL: "{{.*clang.*}}" "-cc1" {{.*}} "-E" {{.*}} "-o" "hip-save-temps-host-x86_64-unknown-linux-gnu.cui" |
58 // RDCL-SAME: "-o" "a.out-hip-amdgcn-amd-amdhsa-gfx900" | 57 // RDCL-SAME: "-o" "a.out-hip-amdgcn-amd-amdhsa-gfx900" |
59 // RDCC: "{{.*clang.*}}" "-cc1" {{.*}} "-E" {{.*}} "-o" "hip-save-temps-host-x86_64-unknown-linux-gnu.cui" | 58 // RDCC: "{{.*clang.*}}" "-cc1" {{.*}} "-E" {{.*}} "-o" "hip-save-temps-host-x86_64-unknown-linux-gnu.cui" |
60 // RDCC: "{{.*clang.*}}" "-cc1" {{.*}} "-emit-llvm-bc" {{.*}} "-o" "hip-save-temps-host-x86_64-unknown-linux-gnu.bc" | 59 // RDCC: "{{.*clang.*}}" "-cc1" {{.*}} "-emit-llvm-bc" {{.*}} "-o" "hip-save-temps-host-x86_64-unknown-linux-gnu.bc" |
61 // RDCC: "{{.*clang.*}}" "-cc1" {{.*}} "-S" {{.*}} "-o" "hip-save-temps-host-x86_64-unknown-linux-gnu.s" | 60 // RDCC: "{{.*clang.*}}" "-cc1" {{.*}} "-S" {{.*}} "-o" "hip-save-temps-host-x86_64-unknown-linux-gnu.s" |
62 // RDCC: "{{.*clang.*}}" "-cc1as" {{.*}} "-o" "hip-save-temps-host-x86_64-unknown-linux-gnu.o" | 61 // RDCC: "{{.*clang.*}}" "-cc1as" {{.*}} "-o" "hip-save-temps-host-x86_64-unknown-linux-gnu.o" |
63 // RDCC: "{{.*clang-offload-bundler.*}}" {{.*}} "-outputs=hip-save-temps.o" | 62 // RDCC: "{{.*clang-offload-bundler.*}}" {{.*}} "-output=hip-save-temps.o" |
64 // RDCL: "{{.*clang-offload-bundler.*}}" {{.*}} "-outputs=hip-save-temps-hip-amdgcn-amd-amdhsa.hipfb" | 63 // RDCL: "{{.*clang-offload-bundler.*}}" {{.*}} "-output=hip-save-temps-hip-amdgcn-amd-amdhsa.hipfb" |
65 // RDCL: {{.*}}llvm-mc{{.*}}"-o" "hip-save-temps-hip-amdgcn-amd-amdhsa.o" "hip-save-temps-hip-amdgcn-amd-amdhsa.mcin" "--filetype=obj" | 64 // RDCL: {{.*}}llvm-mc{{.*}}"-o" "hip-save-temps-hip-amdgcn-amd-amdhsa.o" "hip-save-temps-hip-amdgcn-amd-amdhsa.mcin" "--filetype=obj" |
66 | 65 |
67 // -fno-gpu-rdc host object path | 66 // -fno-gpu-rdc host object path |
68 // NORDC: "{{.*clang.*}}" "-cc1" {{.*}} "-E" {{.*}} "-o" "hip-save-temps-host-x86_64-unknown-linux-gnu.cui" | 67 // NORDC: "{{.*clang.*}}" "-cc1" {{.*}} "-E" {{.*}} "-o" "hip-save-temps-host-x86_64-unknown-linux-gnu.cui" |
69 // NORDC: "{{.*clang.*}}" "-cc1" {{.*}} "-emit-llvm-bc" {{.*}} "-fcuda-include-gpubinary" {{.*}} "-o" "hip-save-temps-host-x86_64-unknown-linux-gnu.bc" | 68 // NORDC: "{{.*clang.*}}" "-cc1" {{.*}} "-emit-llvm-bc" {{.*}} "-fcuda-include-gpubinary" {{.*}} "-o" "hip-save-temps-host-x86_64-unknown-linux-gnu.bc" |