[Mlir-commits] [mlir] [MLIR][NVVM] Add nvvm.addf and nvvm.subf Ops (PR #179162)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Feb 9 00:38:59 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 7467 tests passed
* 600 tests skipped
* 2 tests failed

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

### MLIR
<details>
<summary>MLIR.Dialect/LLVMIR/nvvm-canonicalize.mlir</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/LLVMIR/nvvm-canonicalize.mlir -split-input-file --canonicalize | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/LLVMIR/nvvm-canonicalize.mlir
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/LLVMIR/nvvm-canonicalize.mlir -split-input-file --canonicalize
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/LLVMIR/nvvm-canonicalize.mlir:7:36: error: expected operation name in quotes
# |   %0 = nvvm.subf %arg0, %arg1 : f32, f32 -> f32
# |                                    ^
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/LLVMIR/nvvm-canonicalize.mlir
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/LLVMIR/nvvm-canonicalize.mlir
# `-----------------------------
# error: command failed with exit status: 2

--

```
</details>
<details>
<summary>MLIR.python/dialects/nvvm.py</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/nvvm.py | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/nvvm.py
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/nvvm.py
# .---command stderr------------
# | Traceback (most recent call last):
# |   File "/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/nvvm.py", line 157, in <module>
# |     @constructAndPrintInModule
# |      ^^^^^^^^^^^^^^^^^^^^^^^^^
# |   File "/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/nvvm.py", line 17, in constructAndPrintInModule
# |     f()
# |   File "/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/nvvm.py", line 162, in test_reductions
# |     @func.FuncOp.from_py_func(i32, i32, f32)
# |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# |   File "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/python_packages/mlir_core/mlir/dialects/func.py", line 197, in decorator
# |     return_values = f(*func_args, **func_kwargs)
# |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# |   File "/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/nvvm.py", line 175, in reductions
# |     nvvm.redux_sync(i32, vi32, kind, vi32)
# | TypeError: redux_sync() takes 3 positional arguments but 4 were given
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/nvvm.py
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/nvvm.py:184:16: error: CHECK-LABEL: expected string not found in input
# | # CHECK-LABEL: func.func @reductions(
# |                ^
# | <stdin>:27:22: note: scanning from here
# |  func.func @barriers(%arg0: i32, %arg1: i32, %arg2: f32) -> i32 {
# |                      ^
# | <stdin>:49:1: note: possible intended match here
# | TEST: test_reductions
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/python/dialects/nvvm.py
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |              .
# |              .
# |              .
# |             22: } 
# |             23:  
# |             24:  
# |             25: TEST: test_barriers 
# |             26: module { 
# |             27:  func.func @barriers(%arg0: i32, %arg1: i32, %arg2: f32) -> i32 { 
# | label:184'0                          X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |             28:  %c0_i32 = arith.constant 0 : i32 
# | label:184'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             29:  %c65535_i32 = arith.constant 65535 : i32 
# | label:184'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             30:  %0 = nvvm.barrier id = %c0_i32 number_of_threads = %c65535_i32 -> i32 
# | label:184'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             31:  %1 = nvvm.barrier #nvvm.reduction<and> %0 -> i32 
# | label:184'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             32:  %2 = nvvm.barrier #nvvm.reduction<or> %1 -> i32 
# | label:184'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |             44:  return %3 : i32 
# | label:184'0     ~~~~~~~~~~~~~~~~~
# |             45:  } 
# | label:184'0     ~~~
# |             46: } 
# | label:184'0     ~~
# |             47:  
# | label:184'0     ~
# |             48:  
# | label:184'0     ~
# |             49: TEST: test_reductions 
# | label:184'0     ~~~~~~~~~~~~~~~~~~~~~~
# | label:184'1     ?                      possible intended match
# | >>>>>>
# `-----------------------------
# 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/179162


More information about the Mlir-commits mailing list