test: Skip inline x86_64 assembly on arm64ec

This commit is contained in:
Martin Storsjö committed 2025-05-18 22:30:20 +03:00
1 parent 9f59c26011
commit a453b3c9b3
1 file changed
+1 -1
+1 -1
View File
@@ -35,7 +35,7 @@ void nop_sled_target(void) {
__asm__("nop"); __asm__("nop"); __asm__("nop"); __asm__("nop"); __asm__("nop"); __asm__("nop"); __asm__("nop"); __asm__("nop");
__asm__("nop"); __asm__("nop"); __asm__("nop"); __asm__("nop"); __asm__("nop"); __asm__("nop"); __asm__("nop"); __asm__("nop");
#if defined(__x86_64__) #if defined(__x86_64__) && !defined(__arm64ec__)
// On x86_64 the stack frame has to be aligned to 16 bytes. Since we // On x86_64 the stack frame has to be aligned to 16 bytes. Since we
// skipped the prologue we need to manually realign it to prevent // skipped the prologue we need to manually realign it to prevent
// alignment-related crashes when calling puts() or exit(). // alignment-related crashes when calling puts() or exit().