[flang-commits] [flang] [flang][NFC] Converted five tests from old lowering to new lowering (part 6) (PR #175485)
Tarun Prabhu via flang-commits
flang-commits at lists.llvm.org
Mon Jan 12 07:38:38 PST 2026
================
@@ -1,303 +1,93 @@
-! RUN: bbc --emit-fir -hlfir=false %s -o - | FileCheck %s
-! RUN: bbc -hlfir=false -fwrapv %s -o - | FileCheck --check-prefix=PostOpt %s
-
+! RUN: bbc -emit-hlfir %s -o - | FileCheck %s
+! RUN: bbc -emit-hlfir -fwrapv %s -o - | FileCheck %s
+! Note: with the old lowering, -fwrapv made a differents in FIR output.
+! With lowering to HLFIR, there's no difference at HLFIR level.
----------------
tarunprabhu wrote:
`Lower/nsw.f90` does look very "similar" to this, but the Fortran source is slightly different. I don't have a good sense for whether or not this is significant.
> Note that I also tried to emit FIR with the new lowering and FIR was the same with and without `-fwrapv`.
Yeah, all `Lower/nsw.f90` seems to be doing is checking the absence of `overflow<nsw>`
I'm fine with what is being done here unless Jean has any objections.
https://github.com/llvm/llvm-project/pull/175485
More information about the flang-commits
mailing list