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

16 lines
489 B
Plaintext

// RUN: %{ispc} --target=neon-i32x8 %s -o %t.o 2>&1 | FileCheck %s
// LLVM 16 requires backported patch to disable loop alignment.
// REQUIRES: ARM_ENABLED
// REQUIRES: LLVM_16_0+
// CHECK-NOT: LLVM ERROR: Failed to evaluate function length in SEH unwind info
export void resample(uniform uint32 width, uniform uint32 height,
uniform const uint8 src[], uniform uint8 out[]) {
foreach_tiled (y = 0 ... height, x = 0 ... width) {
out[x] = src[y];
}
}