[llvm] [AMDGPU] Emit b32 movs if (a)v_mov_b64_pseudo dest vgprs are misaligned (PR #160547)

Janek van Oirschot via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 29 03:58:32 PDT 2025


================
@@ -93,12 +93,3 @@ body: |
   bb.0:
     $vgpr0_vgpr1 = V_MOV_B64_PSEUDO 4575657222473777152, implicit $exec
 ...
-
-# GCN-LABEL: name: v_mov_b64_misalign
-# GCN: $vgpr5 = V_MOV_B32_e32 0, implicit $exec, implicit-def $vgpr5_vgpr6
-# GCN: $vgpr6 = V_MOV_B32_e32 0, implicit $exec, implicit-def $vgpr5_vgpr6
-name: v_mov_b64_misalign
-body: |
-  bb.0:
-    $vgpr5_vgpr6 = V_MOV_B64_PSEUDO 0, implicit $exec
-...
----------------
JanekvO wrote:

Because `V_MOV_B64_PSEUDO` is regclass constrained, even the MIRParser will error on a misaligned register pair. Therefore, removing this test.

https://github.com/llvm/llvm-project/pull/160547


More information about the llvm-commits mailing list