Skip to content

Commit 1a4c8e9

Browse files
committed
WIP: filter out apple explicitely
Signed-off-by: Máté Tokodi [email protected]
1 parent 8f3def1 commit 1a4c8e9

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

build/target.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ ELSEIF (${WALRUS_HOST} STREQUAL "windows")
212212
ELSE()
213213
MESSAGE (FATAL_ERROR ${WALRUS_ARCH} " is unsupported")
214214
ENDIF()
215+
215216
ELSE()
216217
MESSAGE (FATAL_ERROR ${WALRUS_HOST} " with " ${WALRUS_ARCH} " is unsupported")
217218
ENDIF()

src/jit/SimdArm64Inl.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -608,13 +608,13 @@ static void simdEmitNarrowUnsigned(sljit_compiler* compiler, sljit_s32 rd, sljit
608608
static void simdEmitDot(sljit_compiler* compiler, uint32_t type, sljit_s32 rd, sljit_s32 rn, sljit_s32 rm)
609609
{
610610
// The rd can be tmpReg1
611-
// #ifdef __ARM_FEATURE_DOTPROD
612-
// fprintf(stdout, "SimdArm64Inl.h: simdEmitDot: using short path\n");
613-
// ASSERT_NOT_REACHED();
614-
// simdEmitOp(compiler, SimdOp::sdot | type, rd, rn, rm);
615-
// #else
611+
#if defined(__ARM_FEATURE_DOTPROD) && !WALRUS_APPLE
612+
fprintf(stdout, "SimdArm64Inl.h: simdEmitDot: using short path\n");
613+
ASSERT_NOT_REACHED();
614+
simdEmitOp(compiler, SimdOp::sdot | type, rd, rn, rm);
615+
#else
616616
fprintf(stdout, "SimdArm64Inl.h: simdEmitDot: using long path\n");
617-
// ASSERT_NOT_REACHED();
617+
ASSERT_NOT_REACHED();
618618
sljit_s32 tmpReg1 = SLJIT_TMP_FR0;
619619
sljit_s32 tmpReg2 = SLJIT_TMP_FR1;
620620
uint32_t lowType = type - (0x1 << SimdOp::sizeOffset);
@@ -629,7 +629,7 @@ static void simdEmitDot(sljit_compiler* compiler, uint32_t type, sljit_s32 rd, s
629629
// Combine + narrow
630630
simdEmitOp(compiler, SimdOp::xtn | type, rd, tmpReg1, 0);
631631
simdEmitOp(compiler, SimdOp::xtn | type | (0x1 << 30), rd, tmpReg2, 0);
632-
// #endif
632+
#endif
633633
}
634634

635635
static void emitBinarySIMD(sljit_compiler* compiler, Instruction* instr)

0 commit comments

Comments
 (0)