30 lines · plain
1// RUN: %clang -### -target amdgcn-amd-amdhsa \2// RUN: -mcpu=gfx908:xnack+:sramecc- \3// RUN: -nostdlib %s 2>&1 | FileCheck %s4 5// RUN: %clang -### -target amdgcn-amd-amdhsa \6// RUN: -mcpu=gfx908:xnack+:sramecc- \7// RUN: -nostdlib -x ir %s 2>&1 | FileCheck %s8 9// RUN: %clang -### -target amdgcn-amd-amdhsa \10// RUN: -mcpu=gfx908:xnack+:sramecc- \11// RUN: -nostdlib -x assembler %s 2>&1 | FileCheck %s12 13// RUN: %clang -### -target amdgcn-amd-amdpal \14// RUN: -mcpu=gfx908:xnack+:sramecc- \15// RUN: -nostdlib %s 2>&1 | FileCheck %s16 17// RUN: %clang -### -target amdgcn--mesa3d \18// RUN: -mcpu=gfx908:xnack+:sramecc- \19// RUN: -nostdlib %s 2>&1 | FileCheck %s20 21// RUN: %clang -### -target amdgcn-amd-amdhsa \22// RUN: -nostdlib %s 2>&1 | FileCheck -check-prefix=NONE %s23 24// CHECK: "-target-cpu" "gfx908"25// CHECK-SAME: "-target-feature" "-sramecc"26// CHECK-SAME: "-target-feature" "+xnack"27 28// NONE-NOT: "-target-cpu"29// NONE-NOT: "-target-feature"30