1// REQUIRES: clang-driver
2// REQUIRES: x86-registered-target
3// REQUIRES: amdgpu-registered-target
4
5// By default FE assumes -fhip-new-launch-api.
6
7// RUN: %clang -### -target x86_64-unknown-linux-gnu -offload-arch=gfx906 %s \
8// RUN:   2>&1 | FileCheck -check-prefixes=NEW %s
9// NEW: "-fhip-new-launch-api"
10
11// RUN: %clang -### -target x86_64-unknown-linux-gnu -offload-arch=gfx906 %s \
12// RUN:   -fhip-new-launch-api 2>&1 | FileCheck -check-prefixes=NEW %s
13// NEW: "-fhip-new-launch-api"
14
15// RUN: %clang -### -target x86_64-unknown-linux-gnu -offload-arch=gfx906 %s \
16// RUN:   -fno-hip-new-launch-api 2>&1 | FileCheck -check-prefixes=OLD %s
17// OLD-NOT: "-fhip-new-launch-api"
18