[llvm] [AutoUpgrade] Restrict NVVM bf16 intrinsic upgrades to integer storage types (PR #197387)

via llvm-commits llvm-commits at lists.llvm.org
Wed May 20 05:41:04 PDT 2026


github-actions[bot] wrote:

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

* 134918 tests passed
* 3298 tests skipped
* 1 test failed

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

### LLVM
<details>
<summary>LLVM.Bitcode/nvvm-bf16-invalid-autoupgrade.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
not c:\_work\llvm-project\llvm-project\build\bin\llvm-as.exe -disable-output < C:\_work\llvm-project\llvm-project\llvm\test\Bitcode\nvvm-bf16-invalid-autoupgrade.ll 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Bitcode\nvvm-bf16-invalid-autoupgrade.ll
# executed command: not 'c:\_work\llvm-project\llvm-project\build\bin\llvm-as.exe' -disable-output
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\Bitcode\nvvm-bf16-invalid-autoupgrade.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\Bitcode\nvvm-bf16-invalid-autoupgrade.ll:3:10: error: CHECK: expected string not found in input
# | ; CHECK: intrinsic has incorrect return type!
# |          ^
# | <stdin>:1:1: note: scanning from here
# | c:\_work\llvm-project\llvm-project\build\bin\llvm-as.exe: assembly parsed, but does not verify as correct!
# | ^
# | <stdin>:6:1: note: possible intended match here
# | intrinsic has incorrect number of args. Expected 2, but got 1
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\Bitcode\nvvm-bf16-invalid-autoupgrade.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            1: c:\_work\llvm-project\llvm-project\build\bin\llvm-as.exe: assembly parsed, but does not verify as correct! 
# | check:3'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |            2: intrinsic return type expected bfloat, but got half 
# | check:3'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            3: ptr @llvm.nvvm.neg.bf16 
# | check:3'0     ~~~~~~~~~~~~~~~~~~~~~~~~
# |            4: intrinsic argument 1 type expected bfloat, but got half 
# | check:3'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            5: ptr @llvm.nvvm.fmax.bf16 
# | check:3'0     ~~~~~~~~~~~~~~~~~~~~~~~~~
# |            6: intrinsic has incorrect number of args. Expected 2, but got 1 
# | check:3'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:3'1     ?                                                              possible intended match
# |            7: ptr @llvm.nvvm.fmin.bf16 
# | check:3'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/197387


More information about the llvm-commits mailing list