[Clang][Test] Fix tests after c1ca9405de36 (#36917)
Fix test failures after commit c1ca9405de36 (merge containing
2825dfa027e6
"[clang] remove lots of "innocuous" addrspacecasts (#197745)").
The commit removed unnecessary addrspacecast operations on temporary
aggregate values (agg.tmp) by changing CreateAggTemp to use
CreateMemTempWithoutCast. This affects tests that check for these
addrspacecast operations:
- CodeGenCXX/amdgcn-func-arg.cpp: Updated CHECK for changed instruction
order
- CodeGenSYCL/basic-kernel-wrapper.cpp: Removed checks for agg.tmp
addrspacecasts
- CodeGenSYCL/dynamic_local_accessor.cpp: Changed from .ascast.ascast to
direct agg.tmp
- CodeGenSYCL/free_function_kernel_params.cpp: Removed agg.tmp
addrspacecast checks
- CodeGenSYCL/kernel-param-acc-array.cpp: Regenerated with
update_cc_test_checks.py
- CodeGenSYCL/kernel-param-member-acc-array.cpp: Regenerated with
update_cc_test_checks.py
The key changes are:
- agg.tmp variables are now allocated in default address space (0)
instead of being cast to addrspace(4)
- memcpy operations changed from p4.p4 to p0.p4
- __init calls now take agg.tmp directly instead of
agg.tmp.ascast.ascast
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>