We have no logic to promote alloca to vector for an AddrSpaceCast instruction.
|25 ↗||(On Diff #143832)|
address space 4 is constant address space. Do you intend to cast %tmp to generic address space? If so, you should use the default address space (0) since that is generic address space.
Update the test:
- correct a few wrong checking;
- Remove the -amdgiz from the triple since it is no longer necessary;
- Add "-data-layout=A5" to explicitly specify the data layout for address space 5 for alloca
- and to remove the "target:" line for the same data layout purpose.