Skip to content

Commit 684fb78

Browse files
committed
enable lse locally in the asm helpers
1 parent c3bcb4b commit 684fb78

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/coreclr/nativeaot/Runtime/arm64/WriteBarriers.S

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,10 @@ LEAF_END RhpAssignRef, _TEXT
268268
// - Function "InWriteBarrierHelper" assumes an AV due to passed in null pointer will happen at RhpCheckedLockCmpXchgAVLocation
269269
// - Function "UnwindSimpleHelperToCaller" assumes no registers were pushed and LR contains the return address
270270

271+
#ifndef LSE_INSTRUCTIONS_ENABLED_BY_DEFAULT
272+
.arch_extension lse
273+
#endif
274+
271275
// RhpCheckedLockCmpXchg(Object** dest, Object* value, Object* comparand)
272276
//
273277
// Interlocked compare exchange on objectref.
@@ -385,3 +389,7 @@ NoBarrierXchg:
385389
ret
386390

387391
LEAF_END RhpCheckedXchg, _TEXT
392+
393+
#ifndef LSE_INSTRUCTIONS_ENABLED_BY_DEFAULT
394+
.arch_extension nolse
395+
#endif

0 commit comments

Comments
 (0)