[llvm] [AMDGPU][True16] Legalize extloads into 16-bit registers (PR #195289)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 1 10:17:19 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 134106 tests passed
* 3217 tests skipped
* 2 tests failed

## Failed Tests
(click on a test name to see its output)

### LLVM
<details>
<summary>LLVM.CodeGen/AMDGPU/GlobalISel/load-d16.ll</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel -new-reg-bank-select -mtriple=amdgcn -mcpu=gfx1200 < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\load-d16.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefixes=GFX12 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\load-d16.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel -new-reg-bank-select -mtriple=amdgcn -mcpu=gfx1200
# .---command stderr------------
# | LLVM ERROR: AMDGPU RegBankLegalize: none of the rules defined with 'Any' for MI's opcode matched MI: %8:vgpr(s16) = G_SEXTLOAD %1:vgpr(p0) :: (load (s8) from %ir.ptra) (in function: sextload_P0_i8_D16)
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0.	Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\llc.exe -global-isel -new-reg-bank-select -mtriple=amdgcn -mcpu=gfx1200
# | 1.	Running pass 'CallGraph Pass Manager' on module '<stdin>'.
# | 2.	Running pass 'AMDGPU Register Bank Legalize' on function '@sextload_P0_i8_D16'
# `-----------------------------
# error: command failed with exit status: 1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefixes=GFX12 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\load-d16.ll'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefixes=GFX12 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\load-d16.ll
# `-----------------------------
# error: command failed with exit status: 2

--

```
</details>
<details>
<summary>LLVM.CodeGen/AMDGPU/global-saddr-load.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx900 < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\global-saddr-load.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=GCN,GFX9 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\global-saddr-load.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx900
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=GCN,GFX9 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\global-saddr-load.ll'
# note: command had no output on stdout or stderr
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx1010 -mattr=+wavefrontsize64 < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\global-saddr-load.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=GCN,GFX10 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\global-saddr-load.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx1010 -mattr=+wavefrontsize64
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=GCN,GFX10 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\global-saddr-load.ll'
# note: command had no output on stdout or stderr
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx1100 -mattr=+real-true16 -mattr=+wavefrontsize64 < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\global-saddr-load.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=GFX11,GFX11-TRUE16 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\global-saddr-load.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx1100 -mattr=+real-true16 -mattr=+wavefrontsize64
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=GFX11,GFX11-TRUE16 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\global-saddr-load.ll'
# note: command had no output on stdout or stderr
# RUN: at line 5
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx1100 -mattr=-real-true16 -mattr=+wavefrontsize64 < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\global-saddr-load.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=GFX11,GFX11-FAKE16 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\global-saddr-load.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx1100 -mattr=-real-true16 -mattr=+wavefrontsize64
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=GFX11,GFX11-FAKE16 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\global-saddr-load.ll'
# note: command had no output on stdout or stderr
# RUN: at line 6
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx1200 -mattr=+real-true16 -mattr=+wavefrontsize64 < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\global-saddr-load.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=GFX12,GFX12-SDAG,GFX12-SDAG-TRUE16 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\global-saddr-load.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx1200 -mattr=+real-true16 -mattr=+wavefrontsize64
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=GFX12,GFX12-SDAG,GFX12-SDAG-TRUE16 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\global-saddr-load.ll'
# note: command had no output on stdout or stderr
# RUN: at line 7
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx1200 -mattr=-real-true16 -mattr=+wavefrontsize64 < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\global-saddr-load.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=GFX12,GFX12-SDAG,GFX12-SDAG-FAKE16 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\global-saddr-load.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx1200 -mattr=-real-true16 -mattr=+wavefrontsize64
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=GFX12,GFX12-SDAG,GFX12-SDAG-FAKE16 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\global-saddr-load.ll'
# note: command had no output on stdout or stderr
# RUN: at line 8
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel -new-reg-bank-select -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx1200 -mattr=+real-true16 -mattr=+wavefrontsize64 < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\global-saddr-load.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=GFX12,GFX12-GISEL,GFX12-GISEL-TRUE16 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\global-saddr-load.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel -new-reg-bank-select -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx1200 -mattr=+real-true16 -mattr=+wavefrontsize64
# .---command stderr------------
# | LLVM ERROR: AMDGPU RegBankLegalize: none of the rules defined with 'Any' for MI's opcode matched MI: %10:vgpr(s16) = G_SEXTLOAD %7:vgpr(p1) :: (load (s8) from %ir.gep0, addrspace 1) (in function: global_load_saddr_i16_d16lo_sexti8_reg_hi)
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0.	Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\llc.exe -global-isel -new-reg-bank-select -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx1200 -mattr=+real-true16 -mattr=+wavefrontsize64
# | 1.	Running pass 'CallGraph Pass Manager' on module '<stdin>'.
# | 2.	Running pass 'AMDGPU Register Bank Legalize' on function '@global_load_saddr_i16_d16lo_sexti8_reg_hi'
# `-----------------------------
# error: command failed with exit status: 1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=GFX12,GFX12-GISEL,GFX12-GISEL-TRUE16 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\global-saddr-load.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\global-saddr-load.ll:3955:29: error: GFX12-GISEL-TRUE16-LABEL: expected string not found in input
# | ; GFX12-GISEL-TRUE16-LABEL: global_load_saddr_i16_d16lo_undef_hi_immneg128:
# |                             ^
# | <stdin>:6736:38: note: scanning from here
# | global_load_saddr_i16_d16lo_undef_hi: ; @global_load_saddr_i16_d16lo_undef_hi
# |                                      ^
# | <stdin>:6744:9: note: possible intended match here
# |  .set .Lglobal_load_saddr_i16_d16lo_undef_hi.num_vgpr, 1
# |         ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\global-saddr-load.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |               .
# |               .
# |               .
# |            6731:  .long 0 
# |            6732:  .text 
# |            6733:  .globl global_load_saddr_i16_d16lo_undef_hi ; -- Begin function global_load_saddr_i16_d16lo_undef_hi 
# |            6734:  .p2align 8 
# |            6735:  .type global_load_saddr_i16_d16lo_undef_hi, at function 
# |            6736: global_load_saddr_i16_d16lo_undef_hi: ; @global_load_saddr_i16_d16lo_undef_hi 
# | label:3955'0                                          X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |            6737: ; %bb.0: 
# | label:3955'0     ~~~~~~~~~
# |            6738:  global_load_d16_b16 v0, v0, s[2:3] 
# | label:3955'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            6739:  s_wait_loadcnt 0x0 
# | label:3955'0     ~~~~~~~~~~~~~~~~~~~~
# |            6740:  ; return to shader part epilog 
# | label:3955'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            6741: .Lfunc_end110: 
# | label:3955'0     ~~~~~~~~~~~~~~~
# |            6742:  .size global_load_saddr_i16_d16lo_undef_hi, .Lfunc_end110-global_load_saddr_i16_d16lo_undef_hi 
# | label:3955'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            6743:  ; -- End function 
# | label:3955'0     ~~~~~~~~~~~~~~~~~~~
# |            6744:  .set .Lglobal_load_saddr_i16_d16lo_undef_hi.num_vgpr, 1 
# | label:3955'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | label:3955'1             ?                                                 possible intended match
# |            6745:  .set .Lglobal_load_saddr_i16_d16lo_undef_hi.num_agpr, 0 
# | label:3955'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            6746:  .set .Lglobal_load_saddr_i16_d16lo_undef_hi.numbered_sgpr, 4 
# | label:3955'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            6747:  .set .Lglobal_load_saddr_i16_d16lo_undef_hi.num_named_barrier, 0 
# | label:3955'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            6748:  .set .Lglobal_load_saddr_i16_d16lo_undef_hi.private_seg_size, 0 
# | label:3955'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            6749:  .set .Lglobal_lo
# | label:3955'0     ~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# 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/195289


More information about the llvm-commits mailing list