[flang-commits] [mlir] [libc] [lldb] [flang] [libcxxabi] [lld] [libcxx] [clang-tools-extra] [compiler-rt] [llvm] [clang] [mlir][complex] Prevent underflow in complex.abs (PR #76316)

Mehdi Amini via flang-commits flang-commits at lists.llvm.org
Sat Jan 27 19:26:33 PST 2024


joker-eph wrote:

I had to revert because this broke a bot: https://lab.llvm.org/buildbot/#/builders/264/builds/6131

```
# RUN: at line 1
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/bin/mlir-opt /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/test/Integration/Dialect/Complex/CPU/correctness.mlir    -func-bufferize -tensor-bufferize -arith-bufferize --canonicalize    -convert-scf-to-cf --convert-complex-to-standard    -finalize-memref-to-llvm -convert-math-to-llvm -convert-math-to-libm    -convert-vector-to-llvm -convert-complex-to-llvm    -convert-func-to-llvm -reconcile-unrealized-casts | /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/bin/mlir-cpu-runner   -e entry -entry-point-result=void    -shared-libs=/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/lib/libmlir_c_runner_utils.so | /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/bin/FileCheck /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/test/Integration/Dialect/Complex/CPU/correctness.mlir
# executed command: /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/bin/mlir-opt /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/test/Integration/Dialect/Complex/CPU/correctness.mlir -func-bufferize -tensor-bufferize -arith-bufferize --canonicalize -convert-scf-to-cf --convert-complex-to-standard -finalize-memref-to-llvm -convert-math-to-llvm -convert-math-to-libm -convert-vector-to-llvm -convert-complex-to-llvm -convert-func-to-llvm -reconcile-unrealized-casts
# executed command: /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/bin/mlir-cpu-runner -e entry -entry-point-result=void -shared-libs=/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/lib/libmlir_c_runner_utils.so
# executed command: /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/bin/FileCheck /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/test/Integration/Dialect/Complex/CPU/correctness.mlir
# .---command stderr------------
# | /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/test/Integration/Dialect/Complex/CPU/correctness.mlir:135:17: error: CHECK-NEXT: expected string not found in input
# |  // CHECK-NEXT: -1.098
# |                 ^
# | <stdin>:3:6: note: scanning from here
# | 0.45509
# |      ^
# | <stdin>:4:1: note: possible intended match here
# | 1.09868
# | ^
# | 
# | Input file: <stdin>
# | Check file: /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/test/Integration/Dialect/Complex/CPU/correctness.mlir
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: nan 
# |             2: nan 
# |             3: 0.45509 
# | next:135'0          X~~ error: no match found
# |             4: 1.09868 
# | next:135'0     ~~~~~~~~
# | next:135'1     ?        possible intended match
# |             5: 0 
# | next:135'0     ~~
# |             6: 0 
# | next:135'0     ~~
# |             7: 0.707107 
# | next:135'0     ~~~~~~~~~
# |             8: 0.707107 
# | next:135'0     ~~~~~~~~~
# |             9: 1.09868 
# | next:135'0     ~~~~~~~~
# |             .
# |             .
# |             .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
```

https://github.com/llvm/llvm-project/pull/76316


More information about the flang-commits mailing list