[flang-commits] [flang] [flang] add nsw to operations in subscripts (PR #110060)
Yusuke MINATO via flang-commits
flang-commits at lists.llvm.org
Thu Sep 26 05:05:33 PDT 2024
================
@@ -150,6 +151,45 @@ subroutine foo4(at1, vector, i, j, k, l, step)
! CHECK: hlfir.yield_element %[[VAL_50]] : f32
! CHECK: }
+subroutine foo5(x, y, z)
+ integer :: x(100)
+ integer(8) :: y(20), z(20)
+ call bar(x(y+z))
+end subroutine
+! CHECK-LABEL: func.func @_QPfoo5(
----------------
yus3710-fj wrote:
Thank you for showing me a better way. I'll modify it.
https://github.com/llvm/llvm-project/pull/110060
More information about the flang-commits
mailing list