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

21 lines
821 B
Plaintext

// RUN: %{ispc} --target=sse4-i32x4 %s > %t 2>&1
// RUN: %{ispc} --target=sse4-i16x8 %s > %t 2>&1
// RUN: %{ispc} --target=sse4-i8x16 %s > %t 2>&1
// RUN: %{ispc} --target=sse4.1-i32x4 %s > %t 2>&1
// RUN: %{ispc} --target=sse4.1-i16x8 %s > %t 2>&1
// RUN: %{ispc} --target=sse4.1-i8x16 %s > %t 2>&1
// RUN: %{ispc} --target=avx1-i32x8 %s > %t 2>&1
// RUN: %{ispc} --target=avx2-i64x4 %s > %t 2>&1
// RUN: %{ispc} --target=avx512skx-x16 %s > %t 2>&1
// REQUIRES: X86_ENABLED
void a(uniform bool aFOO)
{
#if TARGET_WIDTH == 4
bool t = {aFOO, false, false, false};
#elif TARGET_WIDTH == 8
bool t = {aFOO, false, false, false, false, false, false, false};
#elif TARGET_WIDTH == 16
bool t = {aFOO, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false};
#endif
}