Files
UnrealEngine/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.24.0/tests/lit-tests/1197.ispc
2025-05-18 13:04:45 +08:00

7 lines
310 B
Plaintext

// RUN: not %{ispc} --target=host --nostdlib --nowrap -o - --emit-llvm-text %s 2>&1 | FileCheck %s
// CHECK-NOT: LLVM ERROR
inline float gather(varying float& ptr, const uniform size_t stride, const size_t pid, const size_t rid) {
return ((uniform float_)(((uniform int8_ uniform)&ptr) + pid*stride))[rid];
}