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

12 lines
428 B
Plaintext

//; RUN: %{ispc} --emit-asm --target=avx2 %s -o - | FileCheck %s -check-prefix=CHECK_AVX2
//; RUN: %{ispc} --emit-asm --target=sse4 %s -o - | FileCheck %s -check-prefix=CHECK_SSE4
//; RUN: %{ispc} --emit-asm --target=avx512skx-x16 %s -o - | FileCheck %s -check-prefix=CHECK_AVX512
// REQUIRES: X86_ENABLED
unsigned int foo_var(int a) {
//; CHECK_SSE4: pabsd
//; CHECK_AVX2: vpabsd
//; CHECK_AVX512: vpabsd
return abs(a);
}