wasm-micro-runtime/tests
teamchong ca147a3458 test(aot): add x18 register reservation test for macOS ARM64
Add a standalone test to verify that the +reserve-x18 LLVM flag is
correctly applied when compiling AOT for macOS ARM64.

On macOS ARM64, x18 is reserved by Apple for TLS (Thread Local Storage).
Without the +reserve-x18 flag, LLVM may generate code that uses x18,
causing random SIGSEGV crashes (~80% crash rate in testing).

The test:
- Creates a WASM module with 24 local variables to stress register allocation
- Compiles to AOT with -O3 optimization (which would use x18 without the fix)
- Runs 1000 iterations to verify no crashes occur
- Only runs on macOS ARM64 (skipped on other platforms)

Test results:
- Without fix: 82/100 crash rate
- With fix: 0/100 crash rate (1000 iterations verified)
2026-01-08 06:33:04 -05:00
..
benchmarks Modify AOT static PGO to conform to llvm-18 and add a CI job to test static PGO on the coremark benchmark (#4345) 2025-06-12 16:57:11 +08:00
fuzz/wasm-mutator-fuzz Remove local fuzzing server (#4729) 2025-11-25 21:02:10 +08:00
malformed Add malformed test cases (#3459) 2024-05-21 16:38:34 +08:00
regression/ba-issues feat: add support for checking unsupported build configurations (#4690) 2025-12-01 17:55:07 +08:00
requirement-engineering Collective fix (#4413) 2025-06-26 10:20:40 +08:00
standalone test(aot): add x18 register reservation test for macOS ARM64 2026-01-08 06:33:04 -05:00
unit add more unit test cases for interpreter (#4716) 2025-12-18 07:42:50 +08:00
wamr-compiler Fix AOT shift operations for indirect constants (#2627) 2023-10-11 11:22:34 +08:00
wamr-test-suites fix: enhance test case execution handling in test_wamr.sh (#4712) 2025-12-01 17:10:52 +08:00