[llvm] [AMDGPU][GlobalISel] Properly handle lane op lowering for larger vector types (PR #132358)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 14 23:23:58 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-x86_64-debian-dylib` running on `gribozavr4` while building `llvm` at step 7 "test-build-unified-tree-check-llvm".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/24744

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 7 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/llvm.amdgcn.writelane.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=amdgcn--amdhsa -mcpu=gfx802 -verify-machineinstrs < /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/llvm.amdgcn.writelane.ll | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck -check-prefixes=GFX802-SDAG /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/llvm.amdgcn.writelane.ll # RUN: at line 2
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck -check-prefixes=GFX802-SDAG /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/llvm.amdgcn.writelane.ll
+ /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=amdgcn--amdhsa -mcpu=gfx802 -verify-machineinstrs
/b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=amdgcn--amdhsa -mcpu=gfx1010 -verify-machineinstrs < /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/llvm.amdgcn.writelane.ll | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck -check-prefixes=GFX1010-SDAG /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/llvm.amdgcn.writelane.ll # RUN: at line 3
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck -check-prefixes=GFX1010-SDAG /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/llvm.amdgcn.writelane.ll
+ /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=amdgcn--amdhsa -mcpu=gfx1010 -verify-machineinstrs
/b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=amdgcn--amdhsa -mcpu=gfx1100 -verify-machineinstrs -amdgpu-enable-vopd=0 < /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/llvm.amdgcn.writelane.ll | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck -check-prefixes=GFX1100-SDAG /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/llvm.amdgcn.writelane.ll # RUN: at line 4
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck -check-prefixes=GFX1100-SDAG /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/llvm.amdgcn.writelane.ll
+ /b/1/llvm-x86_64-debian-dylib/build/bin/llc -mtriple=amdgcn--amdhsa -mcpu=gfx1100 -verify-machineinstrs -amdgpu-enable-vopd=0
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/llvm.amdgcn.writelane.ll:2870:22: error: GFX1100-SDAG-NEXT: expected string not found in input
; GFX1100-SDAG-NEXT: s_delay_alu instid0(VALU_DEP_2)
                     ^
<stdin>:2199:20: note: scanning from here
 s_waitcnt vmcnt(1)
                   ^
<stdin>:2207:2: note: possible intended match here
 s_clause 0x1
 ^

Input file: <stdin>
Check file: /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/CodeGen/AMDGPU/llvm.amdgcn.writelane.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
             .
             .
             .
          2194:  v_readfirstlane_b32 s4, v4 
          2195:  v_readfirstlane_b32 s5, v3 
          2196:  v_readfirstlane_b32 s6, v2 
          2197:  v_readfirstlane_b32 s0, v7 
          2198:  v_readfirstlane_b32 s2, v6 
          2199:  s_waitcnt vmcnt(1) 
next:2870'0                        X error: no match found
          2200:  v_writelane_b32 v14, s0, s1 
next:2870'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          2201:  s_waitcnt vmcnt(0) 
next:2870'0     ~~~~~~~~~~~~~~~~~~~~
          2202:  v_writelane_b32 v12, s3, s1 
next:2870'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          2203:  v_writelane_b32 v11, s4, s1 
next:2870'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          2204:  v_writelane_b32 v10, s5, s1 
...

```

</details>

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


More information about the llvm-commits mailing list