[llvm] Precommit test for PR #171012 (PR #171013)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 7 14:10:57 PST 2026


================
@@ -0,0 +1,40 @@
+# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 6
+# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx950 -run-pass=localstackalloc -o - %s | FileCheck %s
+
+---
+name:            issue155902
+liveins:
+  - { reg: '$sgpr4_sgpr5', virtual-reg: '%3' }
+stack:
+  - { id: 0, type: default, offset: 0, size: 16384, alignment: 4,
+      stack-id: default, callee-saved-register: '', callee-saved-restored: true,
+      debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
+  - { id: 1, type: default, offset: 0, size: 16, alignment: 8,
+      stack-id: default, callee-saved-register: '', callee-saved-restored: true,
+      debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
+  - { id: 2, type: default, offset: 0, size: 8, alignment: 8,
+      stack-id: default, callee-saved-register: '', callee-saved-restored: true,
+      debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
+body:             |
+  bb.0:
+    liveins: $sgpr4_sgpr5
+
+    ; CHECK-LABEL: name: issue155902
+    ; CHECK: liveins: $sgpr4_sgpr5
+    ; CHECK-NEXT: {{  $}}
+    ; CHECK-NEXT: [[S_MOV_B32_:%[0-9]+]]:sreg_32_xexec_hi = S_MOV_B32 %stack.1
+    ; CHECK-NEXT: [[COPY:%[0-9]+]]:sgpr_64(p4) = COPY $sgpr4_sgpr5
+    ; CHECK-NEXT: [[V_MOV_B:%[0-9]+]]:vreg_64_align2 = V_MOV_B64_PSEUDO 0, implicit $exec
+    ; CHECK-NEXT: SCRATCH_STORE_DWORDX2_SADDR [[V_MOV_B]], %stack.1, 8, 0, implicit $exec, implicit $flat_scr
+    ; CHECK-NEXT: SCRATCH_STORE_DWORDX2_SADDR [[V_MOV_B]], [[S_MOV_B32_]], 0, 0, implicit $exec, implicit $flat_scr
+    ; CHECK-NEXT: [[V_MOV_B1:%[0-9]+]]:vreg_64_align2 = V_MOV_B64_PSEUDO 900, implicit $exec
+    ; CHECK-NEXT: SCRATCH_STORE_DWORDX2_SADDR killed [[V_MOV_B1]], [[S_MOV_B32_]], 16, 0, implicit $exec, implicit $flat_scr
+    ; CHECK-NEXT: S_ENDPGM 0
+    %3:sgpr_64(p4) = COPY $sgpr4_sgpr5
+    %58:vreg_64_align2 = V_MOV_B64_PSEUDO 0, implicit $exec
+    SCRATCH_STORE_DWORDX2_SADDR %58, %stack.1, 8, 0, implicit $exec, implicit $flat_scr
+    SCRATCH_STORE_DWORDX2_SADDR %58, %stack.1, 0, 0, implicit $exec, implicit $flat_scr
+    %59:vreg_64_align2 = V_MOV_B64_PSEUDO 900, implicit $exec
+    SCRATCH_STORE_DWORDX2_SADDR killed %59, %stack.2, 0, 0, implicit $exec, implicit $flat_scr
----------------
arsenm wrote:

```suggestion
    %1:vreg_64_align2 = V_MOV_B64_PSEUDO 900, implicit $exec
    SCRATCH_STORE_DWORDX2_SADDR killed %1, %stack.2, 0, 0, implicit $exec, implicit $flat_scr
```

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


More information about the llvm-commits mailing list