llvm/flang/lib/Evaluate
Peter Steinfeld 3ad9826dcd [flang] Fix the extent calculation when upper bounds are less than lower bounds
When the upper bound is less than the lower bound, the extent is zero.  This is
specified in section 8.5.8.2, paragraph 3.

Note that similar problems exist in the lowering code.  This change only fixes
the problem for the front end.

I also added a test.

Differential Revision: https://reviews.llvm.org/D107832
2021-08-10 10:34:22 -07:00
..
call.cpp
character.h
characteristics.cpp [flang] Complain about more cases of calls to insufficiently defined procedures 2021-06-16 18:20:59 -07:00
check-expression.cpp [flang] Symbol representation for dummy SubprogramDetails 2021-08-02 10:44:27 -07:00
CMakeLists.txt
common.cpp
complex.cpp
constant.cpp
expression.cpp
fold-character.cpp [flang] Fold more reduction intrinsic function calls 2021-06-21 10:13:59 -07:00
fold-complex.cpp [flang] Fold more reduction intrinsic function calls 2021-06-21 10:13:59 -07:00
fold-designator.cpp [flang] (NFC) Expose internal idiom as utility API 2021-05-13 11:19:37 -07:00
fold-implementation.h [flang] Fold MAXVAL & MINVAL 2021-06-16 14:06:34 -07:00
fold-integer.cpp [flang] Fold more reduction intrinsic function calls 2021-06-21 10:13:59 -07:00
fold-logical.cpp [flang] Fold more reduction intrinsic function calls 2021-06-21 10:13:59 -07:00
fold-real.cpp [flang] Fold more reduction intrinsic function calls 2021-06-21 10:13:59 -07:00
fold-reduction.h [flang] Fix generic/specific procedure confusion 2021-06-25 11:54:29 -07:00
fold.cpp
formatting.cpp [flang] [NFC] Repair build with GCC 7.3 2021-06-22 13:52:30 -07:00
host.cpp
host.h
initial-image.cpp
int-power.h
integer.cpp
intrinsics-library.cpp
intrinsics.cpp [flang] Support DFLOAT legacy extension intrinsic function 2021-08-04 12:18:41 -07:00
logical.cpp
real.cpp
shape.cpp [flang] Fix the extent calculation when upper bounds are less than lower bounds 2021-08-10 10:34:22 -07:00
static-data.cpp
tools.cpp [flang] Symbol representation for dummy SubprogramDetails 2021-08-02 10:44:27 -07:00
type.cpp [flang] [NFC] Repair build with GCC 7.3 2021-06-22 13:52:30 -07:00
variable.cpp [flang] preserve symbol in DescriptorInquiry 2021-06-17 12:42:08 +02:00