2018-05-01 03:08:27 +08:00
|
|
|
// REQUIRES: amdgpu-registered-target
|
|
|
|
|
|
|
|
// Check that appropriate features are defined for every supported AMDGPU
|
|
|
|
// "-target" and "-mcpu" options.
|
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple amdgcn -target-cpu gfx904 -S -emit-llvm -o - %s | FileCheck --check-prefix=GFX904 %s
|
|
|
|
// RUN: %clang_cc1 -triple amdgcn -target-cpu gfx906 -S -emit-llvm -o - %s | FileCheck --check-prefix=GFX906 %s
|
2019-05-14 07:15:59 +08:00
|
|
|
// RUN: %clang_cc1 -triple amdgcn -target-cpu gfx1010 -S -emit-llvm -o - %s | FileCheck --check-prefix=GFX1010 %s
|
2018-08-07 15:49:04 +08:00
|
|
|
// RUN: %clang_cc1 -triple amdgcn -target-cpu gfx801 -S -emit-llvm -o - %s | FileCheck --check-prefix=GFX801 %s
|
|
|
|
// RUN: %clang_cc1 -triple amdgcn -target-cpu gfx700 -S -emit-llvm -o - %s | FileCheck --check-prefix=GFX700 %s
|
|
|
|
// RUN: %clang_cc1 -triple amdgcn -target-cpu gfx600 -S -emit-llvm -o - %s | FileCheck --check-prefix=GFX600 %s
|
|
|
|
// RUN: %clang_cc1 -triple amdgcn -target-cpu gfx601 -S -emit-llvm -o - %s | FileCheck --check-prefix=GFX601 %s
|
2018-05-01 03:08:27 +08:00
|
|
|
|
2019-04-06 02:25:00 +08:00
|
|
|
// GFX904: "target-features"="+16-bit-insts,+ci-insts,+dpp,+fp32-denormals,+fp64-fp16-denormals,+gfx8-insts,+gfx9-insts,+s-memrealtime"
|
|
|
|
// GFX906: "target-features"="+16-bit-insts,+ci-insts,+dl-insts,+dot1-insts,+dot2-insts,+dpp,+fp32-denormals,+fp64-fp16-denormals,+gfx8-insts,+gfx9-insts,+s-memrealtime"
|
2019-05-14 07:15:59 +08:00
|
|
|
// GFX1010: "target-features"="+16-bit-insts,+dl-insts,+dpp,+fp32-denormals,+fp64-fp16-denormals,+gfx10-insts,+gfx9-insts,+s-memrealtime"
|
2019-04-06 02:25:00 +08:00
|
|
|
// GFX801: "target-features"="+16-bit-insts,+ci-insts,+dpp,+fp32-denormals,+fp64-fp16-denormals,+gfx8-insts,+s-memrealtime"
|
2018-08-07 15:49:04 +08:00
|
|
|
// GFX700: "target-features"="+ci-insts,+fp64-fp16-denormals,-fp32-denormals"
|
2018-08-09 01:48:37 +08:00
|
|
|
// GFX600: "target-features"="+fp64-fp16-denormals,-fp32-denormals"
|
2018-08-07 15:49:04 +08:00
|
|
|
// GFX601: "target-features"="+fp64-fp16-denormals,-fp32-denormals"
|
2018-05-01 03:08:27 +08:00
|
|
|
|
|
|
|
kernel void test() {}
|