add GenericMemoryRef address space regression test (#59568)
Add test case for LLVM IR generation bug where stores to
GenericMemoryRef incorrectly use addrspace(10) instead of addrspace(11)
in bounds checking code, causing assertion failures in LLVM optimization
passes.
This reproduces the issue described in the gist where bounds checking
generates incorrect address space casts in the LLVM IR.
note :
- Tested on CI due to local environment limitations (Termux/Android)
issue #59510