rusticl: Out-of-spec behavior for out-of-bounds get_global_offset()
Valid values of dimindx are 0 to get_work_dim() - 1. For other values, get_global_offset() returns 0.
The following test in Piglit fails due to this:
program@execute@global-offset@3d- input dependent
We get this SPIRV from Clang:
%23 = OpLoad %v3uint %__spirv_BuiltInGlobalOffset Aligned 16
%call = OpVectorExtractDynamic %uint %23 %22
So maybe the out of bounds checking should happen in LLVM?