[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / Driver / hip-offload-compress-zstd.hip
blob688c2c85329c1921ed120d97bf779f5c8ada984c
1 // REQUIRES: zstd
2 // REQUIRES: x86-registered-target
3 // REQUIRES: amdgpu-registered-target
5 // Test compress bundled bitcode.
7 // RUN: rm -rf %T/a.bc
8 // RUN: %clang -c -v --target=x86_64-linux-gnu \
9 // RUN:   -x hip --offload-arch=gfx1100 --offload-arch=gfx1101 \
10 // RUN:   -fgpu-rdc -nogpuinc -nogpulib \
11 // RUN:   %S/Inputs/hip_multiple_inputs/a.cu \
12 // RUN:   --offload-compress --offload-device-only --gpu-bundle-output \
13 // RUN:   -o %T/a.bc \
14 // RUN: 2>&1 | FileCheck %s
16 // CHECK: clang-offload-bundler{{.*}} -type=bc
17 // CHECK-SAME: -targets={{.*}}hip-amdgcn-amd-amdhsa-gfx1100,hip-amdgcn-amd-amdhsa-gfx1101
18 // CHECK-SAME: -compress -verbose
19 // CHECK: Compressed bundle format
21 // Test uncompress of bundled bitcode.
23 // RUN: %clang --hip-link -### -v --target=x86_64-linux-gnu \
24 // RUN:   --offload-arch=gfx1100 --offload-arch=gfx1101 \
25 // RUN:   -fgpu-rdc -nogpulib \
26 // RUN:   %T/a.bc --offload-device-only \
27 // RUN: 2>&1 | FileCheck -check-prefix=UNBUNDLE %s
29 // UNBUNDLE: clang-offload-bundler{{.*}} "-type=bc"
30 // UNBUNDLE-SAME: -targets={{.*}}hip-amdgcn-amd-amdhsa-gfx1100,hip-amdgcn-amd-amdhsa-gfx1101
31 // UNBUNDLE-SAME: -unbundle
32 // UNBUNDLE-SAME: -verbose
34 // Test compress bundled code objects.
36 // RUN: %clang -c -### -v --target=x86_64-linux-gnu \
37 // RUN:   -x hip --offload-arch=gfx1100 --offload-arch=gfx1101 \
38 // RUN:   -nogpuinc -nogpulib \
39 // RUN:   %S/Inputs/hip_multiple_inputs/a.cu \
40 // RUN:   --offload-compress \
41 // RUN: 2>&1 | FileCheck -check-prefix=CO %s
43 // CO: clang-offload-bundler{{.*}} "-type=o"
44 // CO-SAME: -targets={{.*}}hipv4-amdgcn-amd-amdhsa--gfx1100,hipv4-amdgcn-amd-amdhsa--gfx1101
45 // CO-SAME: "-compress" "-verbose"