Skip to content

Commit 4a9cf38

Browse files
committed
WIP: filter out apple explicitely
Signed-off-by: Máté Tokodi [email protected]
1 parent 54b0f62 commit 4a9cf38

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
@@ -186,6 +186,7 @@ ELSEIF (${WALRUS_HOST} STREQUAL "darwin")
186186
# bdwgc mac cannot support pthread_getattr_np
187187
SET (WALRUS_THIRDPARTY_CFLAGS ${WALRUS_THIRDPARTY_CFLAGS} -UHAVE_PTHREAD_GETATTR_NP)
188188
SET (WALRUS_BUILD_64BIT ON)
189+
SET (WALRUS_APPLE 1)
189190
ELSEIF (${WALRUS_HOST} STREQUAL "windows")
190191
# in windows, default stack limit is 1MB
191192
# but expand stack to 8MB when building to exe for running test

src/jit/SimdArm64Inl.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -603,13 +603,13 @@ static void simdEmitNarrowUnsigned(sljit_compiler* compiler, sljit_s32 rd, sljit
603603
static void simdEmitDot(sljit_compiler* compiler, uint32_t type, sljit_s32 rd, sljit_s32 rn, sljit_s32 rm)
604604
{
605605
// The rd can be tmpReg1
606-
// #ifdef __ARM_FEATURE_DOTPROD
607-
// fprintf(stdout, "SimdArm64Inl.h: simdEmitDot: using short path\n");
608-
// ASSERT_NOT_REACHED();
609-
// simdEmitOp(compiler, SimdOp::sdot | type, rd, rn, rm);
610-
// #else
606+
#if defined(__ARM_FEATURE_DOTPROD) && !WALRUS_APPLE
607+
fprintf(stdout, "SimdArm64Inl.h: simdEmitDot: using short path\n");
608+
ASSERT_NOT_REACHED();
609+
simdEmitOp(compiler, SimdOp::sdot | type, rd, rn, rm);
610+
#else
611611
fprintf(stdout, "SimdArm64Inl.h: simdEmitDot: using long path\n");
612-
// ASSERT_NOT_REACHED();
612+
ASSERT_NOT_REACHED();
613613
sljit_s32 tmpReg1 = SLJIT_TMP_FR0;
614614
sljit_s32 tmpReg2 = SLJIT_TMP_FR1;
615615
uint32_t lowType = type - (0x1 << SimdOp::sizeOffset);
@@ -624,7 +624,7 @@ static void simdEmitDot(sljit_compiler* compiler, uint32_t type, sljit_s32 rd, s
624624
// Combine + narrow
625625
simdEmitOp(compiler, SimdOp::xtn | type, rd, tmpReg1, 0);
626626
simdEmitOp(compiler, SimdOp::xtn | type | (0x1 << 30), rd, tmpReg2, 0);
627-
// #endif
627+
#endif
628628
}
629629

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

0 commit comments

Comments
 (0)