test: Disable align(N) on functions and @alignCast functions for thumbeb too.

This commit is contained in:
Alex Rønne Petersen 2025-01-06 16:22:04 +01:00
parent 52e9fd7c3c
commit c1ae99efb3
No known key found for this signature in database

View File

@ -347,7 +347,7 @@ test "@alignCast functions" {
// function alignment is a compile error on wasm32/wasm64
if (native_arch == .wasm32 or native_arch == .wasm64) return error.SkipZigTest;
if (native_arch == .thumb) return error.SkipZigTest;
if (native_arch == .thumb or native_arch == .thumbeb) return error.SkipZigTest;
try expect(fnExpectsOnly1(simple4) == 0x19);
}
@ -512,7 +512,7 @@ test "align(N) on functions" {
// function alignment is a compile error on wasm32/wasm64
if (native_arch == .wasm32 or native_arch == .wasm64) return error.SkipZigTest;
if (native_arch == .thumb) return error.SkipZigTest;
if (native_arch == .thumb or native_arch == .thumbeb) return error.SkipZigTest;
try expect((@intFromPtr(&overaligned_fn) & (0x1000 - 1)) == 0);
}