[llvm] [AMDGPU] Preserve old MSBs when handling SETREG (PR #191352)
Stanislav Mekhanoshin via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 10 10:17:12 PDT 2026
================
@@ -21,7 +21,7 @@ body: |
; CHECK-NEXT: $vgpr256 = V_MOV_B32_e32 undef $sgpr0, implicit $exec
; CHECK-NEXT: S_SETREG_IMM32_B32 146108, 30721, implicit-def $mode, implicit $mode
; CHECK-NEXT: S_NOP 0
- ; CHECK-NEXT: S_SET_VGPR_MSB 64, implicit-def $mode
+ ; CHECK-NEXT: S_SET_VGPR_MSB 16448, implicit-def $mode
----------------
rampitec wrote:
Then technically it is not absolutely needed because previous instruction is SALU. I have already seen users' confusion though that high bits are zero. IMHO it is easier to always set it.
https://github.com/llvm/llvm-project/pull/191352
More information about the llvm-commits
mailing list