[flang-commits] [flang] [flang] add nsw to operations in subscripts (PR #110060)
via flang-commits
flang-commits at lists.llvm.org
Thu Sep 26 01:37:54 PDT 2024
================
@@ -156,3 +156,20 @@ subroutine bge_test11(c)
! CHECK: %[[V:.*]] = fir.convert %[[R]] : (i1) -> !fir.logical<4>
! CHECK: fir.store %[[V]] to %[[C]] : !fir.ref<!fir.logical<4>>
end subroutine bge_test11
+
+! CHECK-LABEL: bge_test12
----------------
jeanPerier wrote:
Nit: don't you need to add the -fwrap flag to the RUN line for test to be relevant?
Also, to avoid updating the legacy lowering code just for the tests. I would advise adding all the new tests in a new `test/Lower/frwap-option.f90` file run with HFLIR.
I think you can use CHECK-NOT here to too make the tests smaller.
https://github.com/llvm/llvm-project/pull/110060
More information about the flang-commits
mailing list