[flang-commits] [flang] [flang] Use CHECK-DAG to check constants (NFC) (PR #184097)
via flang-commits
flang-commits at lists.llvm.org
Mon Mar 2 03:05:56 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-fir-hlfir
Author: lonely eagle (linuxlonelyeagle)
<details>
<summary>Changes</summary>
It is part of https://github.com/llvm/llvm-project/pull/180556, as a separate NFC PR.
---
Full diff: https://github.com/llvm/llvm-project/pull/184097.diff
1 Files Affected:
- (modified) flang/test/Lower/HLFIR/goto-do-body.f90 (+6-6)
``````````diff
diff --git a/flang/test/Lower/HLFIR/goto-do-body.f90 b/flang/test/Lower/HLFIR/goto-do-body.f90
index 05b666919c4c7..8a04e5465a81a 100644
--- a/flang/test/Lower/HLFIR/goto-do-body.f90
+++ b/flang/test/Lower/HLFIR/goto-do-body.f90
@@ -55,12 +55,12 @@ subroutine sub2()
implicit none
integer :: i, j
external foo
-! CHECK: %[[C_7:.*]] = arith.constant -7 : i32
-! CHECK: %[[C8:.*]] = arith.constant 8 : i32
-! CHECK: %[[C2:.*]] = arith.constant 2 : i32
-! CHECK: %[[C0:.*]] = arith.constant 0 : i32
-! CHECK: %[[C3:.*]] = arith.constant 3 : i32
-! CHECK: %[[C1:.*]] = arith.constant 1 : i32
+! CHECK-DAG: %[[C_7:.*]] = arith.constant -7 : i32
+! CHECK-DAG: %[[C8:.*]] = arith.constant 8 : i32
+! CHECK-DAG: %[[C2:.*]] = arith.constant 2 : i32
+! CHECK-DAG: %[[C0:.*]] = arith.constant 0 : i32
+! CHECK-DAG: %[[C3:.*]] = arith.constant 3 : i32
+! CHECK-DAG: %[[C1:.*]] = arith.constant 1 : i32
! CHECK: %[[TRIP:.*]] = fir.alloca i32
! CHECK: %[[I_REF:.*]] = fir.alloca i32 {bindc_name = "i", {{.*}}}
! CHECK: %[[I:.*]]:2 = hlfir.declare %[[I_REF]] {uniq_name = "_QFsub2Ei"} : (!fir.ref<i32>) -> (!fir.ref<i32>, !fir.ref<i32>)
``````````
</details>
https://github.com/llvm/llvm-project/pull/184097
More information about the flang-commits
mailing list