authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-01-06 16:22:04+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-01-06 16:31:32+01:00
logc1ae99efb30b1dcc86b3f41b419685a62413378e
treef05d025ec973c512f5d3894fe608318b88a7a62c
parent52e9fd7c3c9c92ff4cca02f10f4e2022c11d9351
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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


1 files changed, 2 insertions(+), 2 deletions(-)

test/behavior/align.zig+2-2
...@@ -347,7 +347,7 @@ test "@alignCast functions" {...@@ -347,7 +347,7 @@ test "@alignCast functions" {
347347
348 // function alignment is a compile error on wasm32/wasm64348 // function alignment is a compile error on wasm32/wasm64
349 if (native_arch == .wasm32 or native_arch == .wasm64) return error.SkipZigTest;349 if (native_arch == .wasm32 or native_arch == .wasm64) return error.SkipZigTest;
350 if (native_arch == .thumb) return error.SkipZigTest;350 if (native_arch == .thumb or native_arch == .thumbeb) return error.SkipZigTest;
351351
352 try expect(fnExpectsOnly1(simple4) == 0x19);352 try expect(fnExpectsOnly1(simple4) == 0x19);
353}353}
...@@ -512,7 +512,7 @@ test "align(N) on functions" {...@@ -512,7 +512,7 @@ test "align(N) on functions" {
512512
513 // function alignment is a compile error on wasm32/wasm64513 // function alignment is a compile error on wasm32/wasm64
514 if (native_arch == .wasm32 or native_arch == .wasm64) return error.SkipZigTest;514 if (native_arch == .wasm32 or native_arch == .wasm64) return error.SkipZigTest;
515 if (native_arch == .thumb) return error.SkipZigTest;515 if (native_arch == .thumb or native_arch == .thumbeb) return error.SkipZigTest;
516516
517 try expect((@intFromPtr(&overaligned_fn) & (0x1000 - 1)) == 0);517 try expect((@intFromPtr(&overaligned_fn) & (0x1000 - 1)) == 0);
518}518}