2019-03-16 01:31:51 +08:00
|
|
|
// REQUIRES: clang-driver
|
|
|
|
// REQUIRES: x86-registered-target
|
|
|
|
// REQUIRES: amdgpu-registered-target
|
|
|
|
|
|
|
|
// RUN: %clang -### -target x86_64-linux-gnu \
|
2020-03-12 10:48:12 +08:00
|
|
|
// RUN: --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 \
|
2019-03-16 01:31:51 +08:00
|
|
|
// RUN: -mllvm -amdgpu-function-calls=0 \
|
|
|
|
// RUN: %s 2>&1 | FileCheck %s
|
|
|
|
|
2020-06-25 05:34:21 +08:00
|
|
|
// RUN: %clang -### -target x86_64-linux-gnu \
|
|
|
|
// RUN: --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 \
|
|
|
|
// RUN: -fgpu-rdc -mllvm -amdgpu-function-calls=0 \
|
|
|
|
// RUN: %s 2>&1 | FileCheck -check-prefixes=CHECK,RDC %s
|
|
|
|
|
2021-04-24 06:52:49 +08:00
|
|
|
// CHECK: [[CLANG:".*clang.*"]] "-cc1" "-triple" "amdgcn-amd-amdhsa"
|
2019-03-20 03:34:15 +08:00
|
|
|
// CHECK-SAME: "-aux-triple" "x86_64-unknown-linux-gnu"
|
2019-03-16 01:31:51 +08:00
|
|
|
// CHECK-SAME: {{.*}} "-target-cpu" "gfx803"
|
|
|
|
// CHECK-SAME: {{.*}} "-mllvm" "-amdgpu-function-calls=0" {{.*}}
|
|
|
|
|
2020-06-10 03:02:53 +08:00
|
|
|
// CHECK-NOT: {{".*opt"}}
|
|
|
|
// CHECK-NOT: {{".*llc"}}
|
2020-06-25 05:34:21 +08:00
|
|
|
// RDC: [[LLD:".*lld.*"]] {{.*}} "-plugin-opt=-amdgpu-function-calls=0"
|
2019-03-16 01:31:51 +08:00
|
|
|
|
2021-04-24 06:52:49 +08:00
|
|
|
// CHECK: [[CLANG]] "-cc1" "-triple" "amdgcn-amd-amdhsa"
|
2019-03-20 03:34:15 +08:00
|
|
|
// CHECK-SAME: "-aux-triple" "x86_64-unknown-linux-gnu"
|
2019-03-16 01:31:51 +08:00
|
|
|
// CHECK-SAME: {{.*}} "-target-cpu" "gfx900"
|
|
|
|
// CHECK-SAME: {{.*}} "-mllvm" "-amdgpu-function-calls=0" {{.*}}
|
|
|
|
|
2020-06-10 03:02:53 +08:00
|
|
|
// CHECK-NOT: {{".*opt"}}
|
|
|
|
// CHECK-NOT: {{".*llc"}}
|
2020-06-25 05:34:21 +08:00
|
|
|
// RDC: [[LLD:".*lld.*"]] {{.*}} "-plugin-opt=-amdgpu-function-calls=0"
|