You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.3 KiB
32 lines
1.3 KiB
4 months ago
|
// REQUIRES: clang-driver
|
||
|
// REQUIRES: x86-registered-target
|
||
|
// REQUIRES: amdgpu-registered-target
|
||
|
|
||
|
// RUN: %clang -### -target x86_64-linux-gnu \
|
||
|
// RUN: --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 \
|
||
|
// RUN: -mllvm -amdgpu-function-calls=0 \
|
||
|
// RUN: %s 2>&1 | FileCheck %s
|
||
|
|
||
|
// 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
|
||
|
|
||
|
// CHECK: [[CLANG:".*clang.*"]] "-cc1" "-mllvm" "--amdhsa-code-object-version=4" "-triple" "amdgcn-amd-amdhsa"
|
||
|
// CHECK-SAME: "-aux-triple" "x86_64-unknown-linux-gnu"
|
||
|
// CHECK-SAME: {{.*}} "-target-cpu" "gfx803"
|
||
|
// CHECK-SAME: {{.*}} "-mllvm" "-amdgpu-function-calls=0" {{.*}}
|
||
|
|
||
|
// CHECK-NOT: {{".*opt"}}
|
||
|
// CHECK-NOT: {{".*llc"}}
|
||
|
// RDC: [[LLD:".*lld.*"]] {{.*}} "-plugin-opt=-amdgpu-function-calls=0"
|
||
|
|
||
|
// CHECK: [[CLANG]] "-cc1" "-mllvm" "--amdhsa-code-object-version=4" "-triple" "amdgcn-amd-amdhsa"
|
||
|
// CHECK-SAME: "-aux-triple" "x86_64-unknown-linux-gnu"
|
||
|
// CHECK-SAME: {{.*}} "-target-cpu" "gfx900"
|
||
|
// CHECK-SAME: {{.*}} "-mllvm" "-amdgpu-function-calls=0" {{.*}}
|
||
|
|
||
|
// CHECK-NOT: {{".*opt"}}
|
||
|
// CHECK-NOT: {{".*llc"}}
|
||
|
// RDC: [[LLD:".*lld.*"]] {{.*}} "-plugin-opt=-amdgpu-function-calls=0"
|