[OpenACC] Enable 'attach' clause for combined constructs
[llvm-project.git] / clang / test / Driver / hip-gsplit-dwarf-options.hip
blob8215e8a33082759e93fff3c3f6c3d71621b3237d
1 // REQUIRES: zlib
3 // RUN: %clang -### --target=x86_64-unknown-linux-gnu -c \
4 // RUN:   --offload-arch=gfx906:xnack+ %s -nogpulib -nogpuinc \
5 // RUN:   --offload-arch=gfx900 \
6 // RUN:   -ggdb -gsplit-dwarf 2>&1 | FileCheck %s
8 // RUN: %clang -### --target=x86_64-unknown-linux-gnu -c \
9 // RUN:   -fgpu-rdc --offload-arch=gfx906:xnack+ %s -nogpulib -nogpuinc \
10 // RUN:   --offload-arch=gfx900 \
11 // RUN:   -ggdb -gsplit-dwarf 2>&1 | FileCheck %s
13 // RUN: %clang -### --target=x86_64-unknown-linux-gnu \
14 // RUN:   --offload-arch=gfx906:xnack+ %s -nogpulib -nogpuinc \
15 // RUN:   --offload-arch=gfx900 \
16 // RUN:   -ggdb -gsplit-dwarf 2>&1 | FileCheck %s --check-prefix=LINK
18 // RUN: %clang -### --target=x86_64-unknown-linux-gnu \
19 // RUN:   -fgpu-rdc --offload-arch=gfx906:xnack+ %s -nogpulib -nogpuinc \
20 // RUN:   --offload-arch=gfx900 \
21 // RUN:   -ggdb -gsplit-dwarf 2>&1 | FileCheck %s --check-prefix=LINK
23 // CHECK-DAG: {{".*clang.*".* "-target-cpu" "gfx906".* "-split-dwarf-output" "hip-gsplit-dwarf-options_gfx906:xnack\+.dwo"}}
24 // CHECK-DAG: {{".*clang.*".* "-target-cpu" "gfx900".* "-split-dwarf-output" "hip-gsplit-dwarf-options_gfx900.dwo"}}
25 // CHECK-DAG: {{".*clang.*".* "-target-cpu" "x86-64".* "-split-dwarf-output" "hip-gsplit-dwarf-options.dwo"}}
27 // LINK-DAG: {{".*clang.*".* "-target-cpu" "gfx906".* "-split-dwarf-output" "a-hip-gsplit-dwarf-options_gfx906:xnack\+.dwo"}}
28 // LINK-DAG: {{".*clang.*".* "-target-cpu" "gfx900".* "-split-dwarf-output" "a-hip-gsplit-dwarf-options_gfx900.dwo"}}
29 // LINK-DAG: {{".*clang.*".* "-target-cpu" "x86-64".* "-split-dwarf-output" "a-hip-gsplit-dwarf-options.dwo"}}