Skip to content

Commit f27e89a

Browse files
committed
[AMDGPU] Extends builtin support for amdgcn_image_sample and adds sema checking tests
1 parent 78caf4f commit f27e89a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/test/SemaOpenCL/builtins-image-load-param.cl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ half4 test_builtin_image_load_2d_2(half4 v4f16, int i32, int8 vec8i32) {
2121
return __builtin_amdgcn_image_load_2d_v4f16_i32(100, i32, i32, vec8i32, 120, i32); //expected-error{{argument to '__builtin_amdgcn_image_load_2d_v4f16_i32' must be a constant integer}}
2222
}
2323

24+
2425
float test_builtin_image_load_2darray(float f32, int i32, int8 vec8i32) {
2526

2627
return __builtin_amdgcn_image_load_2darray_f32_i32(100, i32, i32, i32, vec8i32, i32, 110); //expected-error{{argument to '__builtin_amdgcn_image_load_2darray_f32_i32' must be a constant integer}}

0 commit comments

Comments
 (0)