Mark tests as requiring AMDGPU target

This commit is contained in:
Oliver Stannard 2021-08-05 10:02:51 +01:00
parent 0b8471e91b
commit e345b45bf1
2 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,8 @@
// RUN: %clang_cc1 -O0 -cl-std=CL2.0 -triple amdgcn-amd-amdhsa -target-cpu gfx810 \
// RUN: -S -o - %s | FileCheck -check-prefix=GFX8 %s
// REQUIRES: amdgpu-registered-target
// CHECK-LABEL: test_fadd_local
// CHECK: call float @llvm.amdgcn.ds.fadd.f32(float addrspace(3)* %{{.*}}, float %{{.*}}, i32 0, i32 0, i1 false)
// GFX8-LABEL: test_fadd_local$local:

View File

@ -4,6 +4,8 @@
// RUN: %clang_cc1 -O0 -cl-std=CL2.0 -triple amdgcn-amd-amdhsa -target-cpu gfx90a \
// RUN: -S -o - %s | FileCheck -check-prefix=GFX90A %s
// REQUIRES: amdgpu-registered-target
typedef half __attribute__((ext_vector_type(2))) half2;
// CHECK-LABEL: test_global_add_f64