[llvm] [WebAssembly] Fix SELECT_CC lowering for reference types (PR #181622)

via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 16 02:18:02 PST 2026


github-actions[bot] wrote:

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

* 130905 tests passed
* 2938 tests skipped
* 1 test failed

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

### LLVM
<details>
<summary>LLVM.CodeGen/WebAssembly/select.ll</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\WebAssembly\select.ll -disable-wasm-fallthrough-return-opt -wasm-disable-explicit-locals -wasm-keep-registers | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\WebAssembly\select.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -disable-wasm-fallthrough-return-opt -wasm-disable-explicit-locals -wasm-keep-registers
# .---command stderr------------
# | Assertion failed: Bits != 0 && "Cannot print this instruction.", file lib\Target\WebAssembly\WebAssemblyGenAsmWriter.inc, line 4967
# | 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 -disable-wasm-fallthrough-return-opt -wasm-disable-explicit-locals -wasm-keep-registers
# | 1.	Running pass 'Function Pass Manager' on module '<stdin>'.
# | 2.	Running pass 'WebAssembly Assembly Printer' on function '@select_externref_eq'
# | Exception Code: 0xC000001D
# |  #0 0x00007ff62602d256 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x2ccd256)
# |  #1 0x00007fff5f35bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# |  #2 0x00007fff5f35cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# |  #3 0x00007fff5f35e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# |  #4 0x00007fff5f35e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# |  #5 0x00007ff6253cd470 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x206d470)
# |  #6 0x00007ff623b5b917 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x7fb917)
# |  #7 0x00007ff6253ba060 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x205a060)
# |  #8 0x00007ff6236b5058 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x355058)
# |  #9 0x00007ff623bcc8aa (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x86c8aa)
# | #10 0x00007ff6236b715a (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x35715a)
# | #11 0x00007ff623da3ca3 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xa43ca3)
# | #12 0x00007ff623814992 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4b4992)
# | #13 0x00007ff62381da6d (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4bda6d)
# | #14 0x00007ff623815671 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4b5671)
# | #15 0x00007ff623367ab7 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x7ab7)
# | #16 0x00007ff623364d36 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4d36)
# | #17 0x00007ff627aee250 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x478e250)
# | #18 0x00007fff65424cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #19 0x00007fff71d9edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\WebAssembly\select.ll'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\WebAssembly\select.ll
# `-----------------------------
# error: command failed with exit status: 2

--

```
</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/181622


More information about the llvm-commits mailing list