Issue 239192
Summary [AMDGPU] SelectionDAG crash on uniform addrspace(6) load that needs VMEM
Labels backend:AMDGPU, crash-on-valid, llvm:SelectionDAG
Assignees
Reporter jayfoad
    Repro: `llc -mtriple=amdgpu9.0a-amd-amdhsa as6-uniform-subdword.txt`
[as6-uniform-subdword.txt](https://github.com/user-attachments/files/34423142/as6-uniform-subdword.txt)

- as6_i32_a2, as6_i8_a1, as6_i56_a8:
  - gfx9 / 10.3 / 11 / 12 / 12.5: "illegal VGPR to SGPR copy";
  - gfx803: assertion `DestSubReg && SrcSubReg` in SIInstrInfo::copyPhysReg.
- The addrspace(4) controls and the dword-aligned as6_i32_a4 control compile. GlobalISel compiles everything.
- Cause (gfx9): the 32-bit pointer is used directly as a 64-bit SADDR base,
 `%14:sreg_64_xexec_xnull = COPY %8:sgpr_32`, with no zero-extension or high half.

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to