[Mlir-commits] [mlir] [MLIR][NVVM] Add nvvm.fma Op (PR #184776)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Mar 5 03:54:36 PST 2026


github-actions[bot] wrote:

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

* 3518 tests passed
* 416 tests skipped
* 1 test failed

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

### MLIR
<details>
<summary>MLIR.Target/LLVMIR/nvvm/fma/fma_invalid.mlir</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\mlir-translate.exe --mlir-to-llvmir --split-input-file --verify-diagnostics C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\nvvm\fma\fma_invalid.mlir
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\mlir-translate.exe' --mlir-to-llvmir --split-input-file --verify-diagnostics 'C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\nvvm\fma\fma_invalid.mlir'
# .---command stdout------------
# | ; ModuleID = 'LLVMDialectModule'
# | source_filename = "LLVMDialectModule"
# | 
# | !llvm.module.flags = !{!0}
# | 
# | !0 = !{i32 2, !"Debug Info Version", i32 3}
# | 
# | 
# | 
# | 
# | 
# | 
# | 
# | 
# | 
# | 
# | 
# `-----------------------------
# .---command stderr------------
# | within split at C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\nvvm\fma\fma_invalid.mlir:19 offset :5:9: error: unexpected error: 'nvvm.fma' op requires attribute 'rnd'
# |   %f1 = nvvm.fma %a, %b, %c {relu = true, sat = #nvvm.sat_mode<sat>} : f16
# |         ^
# | within split at C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\nvvm\fma\fma_invalid.mlir:19 offset :4:6: error: expected error "relu and saturation are not supported together" was not produced
# |   // expected-error at +1 {{relu and saturation are not supported together}}
# |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | within split at C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\nvvm\fma\fma_invalid.mlir:27 offset :5:9: error: unexpected error: 'nvvm.fma' op requires attribute 'rnd'
# |   %f1 = nvvm.fma %a, %b, %c {oob = true, sat = #nvvm.sat_mode<sat>} : f16
# |         ^
# | within split at C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\nvvm\fma\fma_invalid.mlir:27 offset :4:6: error: expected error "oob is not supported with saturation" was not produced
# |   // expected-error at +1 {{oob is not supported with saturation}}
# |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | within split at C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\nvvm\fma\fma_invalid.mlir:35 offset :5:9: error: unexpected error: 'nvvm.fma' op requires attribute 'rnd'
# |   %f1 = nvvm.fma %a, %b, %c {oob = true} : f64
# |         ^
# | within split at C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\nvvm\fma\fma_invalid.mlir:35 offset :4:6: error: expected error "oob is supported only for f16 and bf16 fused multiply-add operations" was not produced
# |   // expected-error at +1 {{oob is supported only for f16 and bf16 fused multiply-add operations}}
# |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | within split at C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\nvvm\fma\fma_invalid.mlir:43 offset :5:9: error: unexpected error: 'nvvm.fma' op requires attribute 'rnd'
# |   %f1 = nvvm.fma %a, %b, %c {relu = true, oob = true} : f16
# |         ^
# | within split at C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\nvvm\fma\fma_invalid.mlir:43 offset :4:6: error: expected error "relu and oob are only supported for f16 and bf16 fused multiply-add operations" was not produced
# |   // expected-error at +1 {{relu and oob are only supported for f16 and bf16 fused multiply-add operations}}
# |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | within split at C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\nvvm\fma\fma_invalid.mlir:51 offset :5:9: error: unexpected error: 'nvvm.fma' op requires attribute 'rnd'
# |   %f1 = nvvm.fma %a, %b, %c {ftz = true, sat = #nvvm.sat_mode<sat>} : f64
# |         ^
# | within split at C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\nvvm\fma\fma_invalid.mlir:51 offset :4:6: error: expected error "FTZ and saturation are not supported for fused multiply-add operations involving f64 type" was not produced
# |   // expected-error at +1 {{FTZ and saturation are not supported for fused multiply-add operations involving f64 type}}
# |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | within split at C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\nvvm\fma\fma_invalid.mlir:75 offset :5:9: error: unexpected error: 'nvvm.fma' op requires attribute 'rnd'
# |   %f1 = nvvm.fma %a, %b, %c {ftz = true} : vector<2xbf16>
# |         ^
# | within split at C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\nvvm\fma\fma_invalid.mlir:75 offset :4:6: error: expected error "FTZ and saturation are not supported for bf16 and vector<2xbf16> fused multiply-add operations" was not produced
# |   // expected-error at +1 {{FTZ and saturation are not supported for bf16 and vector<2xbf16> fused multiply-add operations}}
# |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | within split at C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\nvvm\fma\fma_invalid.mlir:83 offset :5:9: error: unexpected error: 'nvvm.fma' op requires attribute 'rnd'
# |   %f1 = nvvm.fma %a, %b, %c {sat = #nvvm.sat_mode<sat>} : vector<2xbf16>
# |         ^
# | within split at C:\_work\llvm-project\llvm-project\mlir\test\Target\LLVMIR\nvvm\fma\fma_invalid.mlir:83 offset :4:6: error: expected error "FTZ and saturation are not supported for bf16 and vector<2xbf16> fused multiply-add operations" was not produced
# |   // expected-error at +1 {{FTZ and saturation are not supported for bf16 and vector<2xbf16> fused multiply-add operations}}
# |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# `-----------------------------
# 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/184776


More information about the Mlir-commits mailing list