[flang-commits] [flang] [flang] IEEE_REAL (PR #113948)
via flang-commits
flang-commits at lists.llvm.org
Tue Oct 29 05:40:01 PDT 2024
================
@@ -0,0 +1,217 @@
+! RUN: bbc -emit-fir -o - %s | FileCheck %s
----------------
jeanPerier wrote:
It looks like the test is failing the pre-merge build:
```
FAIL: Flang :: Lower/Intrinsics/ieee_real.f90 (904 of 3020)
--
| ******************** TEST 'Flang :: Lower/Intrinsics/ieee_real.f90' FAILED ********************
| Exit Code: 1
|
| Command Output (stderr):
| --
| RUN: at line 1: bbc -emit-fir -o - /var/lib/buildkite-agent/builds/linux-56-59b8f5d88-flth7-1/llvm-project/github-pull-requests/flang/test/Lower/Intrinsics/ieee_real.f90 \| /var/lib/buildkite-agent/builds/linux-56-59b8f5d88-flth7-1/llvm-project/github-pull-requests/build/bin/FileCheck /var/lib/buildkite-agent/builds/linux-56-59b8f5d88-flth7-1/llvm-project/github-pull-requests/flang/test/Lower/Intrinsics/ieee_real.f90
| + bbc -emit-fir -o - /var/lib/buildkite-agent/builds/linux-56-59b8f5d88-flth7-1/llvm-project/github-pull-requests/flang/test/Lower/Intrinsics/ieee_real.f90
| + /var/lib/buildkite-agent/builds/linux-56-59b8f5d88-flth7-1/llvm-project/github-pull-requests/build/bin/FileCheck /var/lib/buildkite-agent/builds/linux-56-59b8f5d88-flth7-1/llvm-project/github-pull-requests/flang/test/Lower/Intrinsics/ieee_real.f90
| /var/lib/buildkite-agent/builds/linux-56-59b8f5d88-flth7-1/llvm-project/github-pull-requests/flang/test/Lower/Intrinsics/ieee_real.f90:54:11: error: CHECK: expected string not found in input
| ! CHECK: %[[V_39:[0-9]+]] = arith.cmpi slt, %[[V_12]], %[[V_14]] : i64
| ^
| <stdin>:152:41: note: scanning from here
| %38 = arith.cmpi eq, %27, %c4_i32 : i32
```
By the way, I just noticed that this uses `-emit-fir`, would it be possible to test with `-emit-hlfir`?
The rational is that some optimizations/arith patterns are applied between lowering and the output of -emit-fir, so for tests that generate and tests a lot of arith ops, using `-emit-hlfir` decrease the chances this test need to be updated when modifying the pipeline or arith canonicalization patterns.
https://github.com/llvm/llvm-project/pull/113948
More information about the flang-commits
mailing list