2020-05-05 11:22:06 +08:00
|
|
|
// REQUIRES: clang-driver
|
|
|
|
// REQUIRES: x86-registered-target
|
|
|
|
// REQUIRES: amdgpu-registered-target
|
|
|
|
|
|
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
2020-12-08 06:31:28 +08:00
|
|
|
// RUN: -mcpu=gfx908:xnack+:sramecc- \
|
2020-05-05 11:22:06 +08:00
|
|
|
// RUN: -nostdlib %s 2>&1 | FileCheck %s
|
|
|
|
|
|
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
2020-12-08 06:31:28 +08:00
|
|
|
// RUN: -mcpu=gfx908:xnack+:sramecc- \
|
2020-05-05 11:22:06 +08:00
|
|
|
// RUN: -nostdlib -x ir %s 2>&1 | FileCheck %s
|
|
|
|
|
|
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
2020-12-08 06:31:28 +08:00
|
|
|
// RUN: -mcpu=gfx908:xnack+:sramecc- \
|
2020-05-05 11:22:06 +08:00
|
|
|
// RUN: -nostdlib -x assembler %s 2>&1 | FileCheck %s
|
|
|
|
|
|
|
|
// RUN: %clang -### -target amdgcn-amd-amdpal \
|
2020-12-08 06:31:28 +08:00
|
|
|
// RUN: -mcpu=gfx908:xnack+:sramecc- \
|
2020-05-05 11:22:06 +08:00
|
|
|
// RUN: -nostdlib %s 2>&1 | FileCheck %s
|
|
|
|
|
|
|
|
// RUN: %clang -### -target amdgcn--mesa3d \
|
2020-12-08 06:31:28 +08:00
|
|
|
// RUN: -mcpu=gfx908:xnack+:sramecc- \
|
2020-05-05 11:22:06 +08:00
|
|
|
// RUN: -nostdlib %s 2>&1 | FileCheck %s
|
|
|
|
|
|
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa \
|
|
|
|
// RUN: -nostdlib %s 2>&1 | FileCheck -check-prefix=NONE %s
|
|
|
|
|
|
|
|
// CHECK: "-target-cpu" "gfx908"
|
2020-12-08 06:31:28 +08:00
|
|
|
// CHECK-SAME: "-target-feature" "-sramecc"
|
2020-05-05 11:22:06 +08:00
|
|
|
// CHECK-SAME: "-target-feature" "+xnack"
|
|
|
|
|
|
|
|
// NONE-NOT: "-target-cpu"
|
|
|
|
// NONE-NOT: "-target-feature"
|