[Mlir-commits] [mlir] [MLIR][EmitC] Align default language targets for Math lowering (PR #231553)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Oct 13 08:52:45 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 9347 tests passed
* 656 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### MLIR
<details>
<summary>MLIR.Dialect/EmitC/math/ops.mlir</summary>
```
Exit Code: 1
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/EmitC/math/ops.mlir -math-expand-ops=ops=rsqrt -convert-math-to-emitc -convert-arith-to-emitc | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/EmitC/math/ops.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/EmitC/math/ops.mlir -math-expand-ops=ops=rsqrt -convert-math-to-emitc -convert-arith-to-emitc
# note: command had no output on stdout or stderr
# 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/EmitC/math/ops.mlir
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/EmitC/math/ops.mlir:23:11: error: CHECK: expected string not found in input
# | // CHECK: %[[SQRT:.*]] = emitc.call_opaque "sqrtf"(%[[SRC]])
# | ^
# | <stdin>:3:56: note: scanning from here
# | %0 = "emitc.constant"() <{value = 1.000000e+00 : f32}> : () -> f32
# | ^
# | <stdin>:3:56: note: with "SRC" equal to "arg0"
# | %0 = "emitc.constant"() <{value = 1.000000e+00 : f32}> : () -> f32
# | ^
# | <stdin>:3:56: note: pattern attempts to capture variables: "SQRT"
# | %0 = "emitc.constant"() <{value = 1.000000e+00 : f32}> : () -> f32
# | ^
# | <stdin>:4:2: note: possible intended match here
# | %1 = emitc.call_opaque "std::sqrt"(%arg0) : (f32) -> f32
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/EmitC/math/ops.mlir:35:11: error: CHECK: expected string not found in input
# | // CHECK: %[[SQRT:.*]] = emitc.call_opaque "sqrt"(%[[SRC]])
# | ^
# | <stdin>:9:56: note: scanning from here
# | %0 = "emitc.constant"() <{value = 1.000000e+00 : f64}> : () -> f64
# | ^
# | <stdin>:9:56: note: with "SRC" equal to "arg0"
# | %0 = "emitc.constant"() <{value = 1.000000e+00 : f64}> : () -> f64
# | ^
# | <stdin>:9:56: note: pattern attempts to capture variables: "SQRT"
# | %0 = "emitc.constant"() <{value = 1.000000e+00 : f64}> : () -> f64
# | ^
# | <stdin>:10:2: note: possible intended match here
# | %1 = emitc.call_opaque "std::sqrt"(%arg0) : (f64) -> f64
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Dialect/EmitC/math/ops.mlir
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: module {
# | 2: func.func @rsqrt32(%arg0: f32) -> f32 {
# | 3: %0 = "emitc.constant"() <{value = 1.000000e+00 : f32}> : () -> f32
# | check:23'0 { search range start (exclusive)
# | check:23'1 error: no match found in search range
# | check:23'2 with "SRC" equal to "arg0"
# | check:23'3 pattern attempts to capture variables: "SQRT"
# | 4: %1 = emitc.call_opaque "std::sqrt"(%arg0) : (f32) -> f32
# | check:23'4 ? possible intended match
# | 5: %2 = emitc.div %0, %1 : (f32, f32) -> f32
# | 6: return %2 : f32
# | 7: }
# | 8: func.func @rsqrt64(%arg0: f64) -> f64 {
# | check:23'5 } search range end (exclusive)
# | 9: %0 = "emitc.constant"() <{value = 1.000000e+00 : f64}> : () -> f64
# | check:35'0 { search range start (exclusive)
# | check:35'1 error: no match found in search range
# | check:35'2 with "SRC" equal to "arg0"
# | check:35'3 pattern attempts to capture variables: "SQRT"
# | 10: %1 = emitc.call_opaque "std::sqrt"(%arg0) : (f64) -> f64
# | check:35'4 ? possible intended match
# | 11: %2 = emitc.div %0, %1 : (f64, f64) -> f64
# | 12: return %2 : f64
# | 13: }
# | 14: func.func @negative_rsqrt16(%arg0: f16) -> f16 {
# | check:35'5 } search range end (exclusive)
# | 15: %0 = "emitc.constant"() <{value = 1.000000e+00 : f16}> : () -> f16
# | 16: %1 = math.sqrt %arg0 : f16
# | 17: %2 = emitc.div %0, %1 : (f16, f16) -> f16
# | 18: return %2 : f16
# | 19: }
# | 20: }
# | 21:
# | >>>>>>
# `-----------------------------
# 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/231553
More information about the Mlir-commits
mailing list