[llvm] [AMDGPU][GlobalISel] Fix register count for d16 gather4 on gfx8.1/gfx9 (PR #219891)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 31 06:50:34 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 181576 tests passed
* 3785 tests skipped
* 2 tests failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.d16.dim.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel -mtriple=amdgpu8.02 -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.d16.dim.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=GFX8-UNPACKED /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.d16.dim.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel -mtriple=amdgpu8.02 -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.d16.dim.ll
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=GFX8-UNPACKED /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.d16.dim.ll
# note: command had no output on stdout or stderr
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel -mtriple=amdgpu8.10 -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.d16.dim.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=GFX81 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.d16.dim.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel -mtriple=amdgpu8.10 -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.d16.dim.ll
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=GFX81 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.d16.dim.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.d16.dim.ll:31:15: error: GFX81-NEXT: expected string not found in input
# | ; GFX81-NEXT: image_gather4_b v[0:1], v[0:2], s[0:7], s[8:11] dmask:0x4 d16
# | ^
# | <stdin>:24:32: note: scanning from here
# | s_and_b64 exec, exec, s[12:13]
# | ^
# | <stdin>:25:2: note: possible intended match here
# | image_gather4_b v[0:3], v[0:2], s[0:7], s[8:11] dmask:0x4 d16
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.d16.dim.ll:73:15: error: GFX81-NEXT: expected string not found in input
# | ; GFX81-NEXT: image_gather4_lz v[0:1], v[0:1], s[0:7], s[8:11] dmask:0x1 d16
# | ^
# | <stdin>:84:22: note: scanning from here
# | ; %bb.0: ; %main_body
# | ^
# | <stdin>:85:2: note: possible intended match here
# | image_gather4_lz v[0:3], v[0:1], s[0:7], s[8:11] dmask:0x1 d16
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.d16.dim.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 19: .type image_gather4_b_2d_v4f16, at function
# | 20: image_gather4_b_2d_v4f16: ; @image_gather4_b_2d_v4f16
# | 21: ; %bb.0: ; %main_body
# | 22: s_mov_b64 s[12:13], exec
# | 23: s_wqm_b64 exec, exec
# | 24: s_and_b64 exec, exec, s[12:13]
# | next:31'0 { search range start (exclusive)
# | next:31'1 error: no match found in search range
# | 25: image_gather4_b v[0:3], v[0:2], s[0:7], s[8:11] dmask:0x4 d16
# | next:31'2 ? possible intended match
# | 26: s_waitcnt vmcnt(0)
# | 27: ; return to shader part epilog
# | 28: .Lfunc_end0:
# | 29: .size image_gather4_b_2d_v4f16, .Lfunc_end0-image_gather4_b_2d_v4f16
# | 30: ; -- End function
# | .
# | .
# | .
# | 78: .long 0
# | 79: .text
# | 80: .globl image_gather4_lz_2d_v4f16 ; -- Begin function image_gather4_lz_2d_v4f16
# | 81: .p2align 8
# | 82: .type image_gather4_lz_2d_v4f16, at function
# | 83: image_gather4_lz_2d_v4f16: ; @image_gather4_lz_2d_v4f16
# | next:31'3 } search range end (exclusive)
# | 84: ; %bb.0: ; %main_body
# | next:73'0 { search range start (exclusive)
# | next:73'1 error: no match found in search range
# | 85: image_gather4_lz v[0:3], v[0:1], s[0:7], s[8:11] dmask:0x1 d16
# | next:73'2 ? possible intended match
# | 86: s_waitcnt vmcnt(0)
# | 87: ; return to shader part epilog
# | 88: .Lfunc_end1:
# | 89: .size image_gather4_lz_2d_v4f16, .Lfunc_end1-image_gather4_lz_2d_v4f16
# | 90: ; -- End function
# | .
# | .
# | .
# | 126: .set amdgpu.max_num_agpr, 0
# | 127: .set amdgpu.max_num_sgpr, 0
# | 128: .set amdgpu.max_num_named_barrier, 0
# | 129: .section .AMDGPU.csdata,"", at progbits
# | 130: .section ".note.GNU-stack","", at progbits
# | 131: .amd_amdgpu_isa "amdgpu8.10-unknown-unknown-unknown-gfx810"
# | next:73'3 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.d16.tfe.dim.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel -mtriple=amdgpu8.02 -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.d16.tfe.dim.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=GFX8-UNPACKED /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.d16.tfe.dim.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel -mtriple=amdgpu8.02 -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.d16.tfe.dim.ll
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=GFX8-UNPACKED /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.d16.tfe.dim.ll
# note: command had no output on stdout or stderr
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel -mtriple=amdgpu8.10 -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.d16.tfe.dim.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=GFX81 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.d16.tfe.dim.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel -mtriple=amdgpu8.10 -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.d16.tfe.dim.ll
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=GFX81 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.d16.tfe.dim.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.d16.tfe.dim.ll:37:15: error: GFX81-NEXT: expected string not found in input
# | ; GFX81-NEXT: image_gather4_lz v[0:2], v[4:5], s[0:7], s[8:11] dmask:0x1 tfe d16
# | ^
# | <stdin>:27:22: note: scanning from here
# | v_mov_b32_e32 v2, v0
# | ^
# | <stdin>:29:2: note: possible intended match here
# | image_gather4_lz v[0:4], v[4:5], s[0:7], s[8:11] dmask:0x1 tfe d16
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.gather4.d16.tfe.dim.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 22: v_mov_b32_e32 v4, v0
# | 23: v_mov_b32_e32 v0, 0
# | 24: v_mov_b32_e32 v5, v1
# | 25: v_mov_b32_e32 v6, v2
# | 26: v_mov_b32_e32 v1, v0
# | 27: v_mov_b32_e32 v2, v0
# | next:37'0 { search range start (exclusive)
# | next:37'1 error: no match found in search range
# | 28: v_mov_b32_e32 v7, v3
# | 29: image_gather4_lz v[0:4], v[4:5], s[0:7], s[8:11] dmask:0x1 tfe d16
# | next:37'2 ? possible intended match
# | 30: s_waitcnt vmcnt(0)
# | 31: flat_store_dword v[6:7], v2
# | 32: s_waitcnt vmcnt(0)
# | 33: ; return to shader part epilog
# | 34: .Lfunc_end0:
# | .
# | .
# | .
# | 72: .set amdgpu.max_num_agpr, 0
# | 73: .set amdgpu.max_num_sgpr, 0
# | 74: .set amdgpu.max_num_named_barrier, 0
# | 75: .section .AMDGPU.csdata,"", at progbits
# | 76: .section ".note.GNU-stack","", at progbits
# | 77: .amd_amdgpu_isa "amdgpu8.10-unknown-unknown-unknown-gfx810"
# | next:37'3 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/219891
More information about the llvm-commits
mailing list