Skip to content

Commit a5f02a8

Browse files
authored
[Fortran/gfortran] Disable bounds-check tests. (#196)
The tests started failing at -O2 after llvm/llvm-project#121544 Flang inlines hlfir.assign with hlfir.expr RHSs after the change, so the runtime is not called, and it does not make the bounds checks. Related feature request: https://github.com/orgs/llvm/projects/12?pane=issue&itemId=29048733
1 parent 3778bdf commit a5f02a8

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Fortran/gfortran/regression/DisabledFiles.cmake

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1626,9 +1626,19 @@ file(GLOB FAILING_FILES CONFIGURE_DEPENDS
16261626

16271627
# Tests looking for runtime errors (e.g., bound checks). Correctly
16281628
# caught by flang runtime, but not caught with Flang optimizations,
1629-
# e.g. due to intrinsics inlining. These can pass with -O0:
1629+
# e.g. due to intrinsics inlining.
1630+
# Until https://github.com/orgs/llvm/projects/12?pane=issue&itemId=29048733
1631+
# is implemented, they can only pass at -O0:
1632+
all_bounds_1.f90
16301633
cshift_bounds_3.f90
16311634
cshift_bounds_4.f90
1635+
maxloc_bounds_1.f90
1636+
maxloc_bounds_2.f90
1637+
maxloc_bounds_4.f90
1638+
maxloc_bounds_8.f90
1639+
maxloc_bounds_7.f90
1640+
pack_bounds_1.f90
1641+
spread_bounds_1.f90
16321642

16331643
# Bad test, assigning an 11 elements array to a 12 elements array.
16341644
transfer_array_intrinsic_4.f90

0 commit comments

Comments
 (0)