Issue |
149458
|
Summary |
[flang][OpenMP] Crash with SIMD ALIGNED
|
Labels |
flang
|
Assignees |
|
Reporter |
sscalpone
|
```
% cat bar.f90
SUBROUTINE s
REAL, POINTER :: p
!$OMP SIMD ALIGNED(p: 3_4)
DO i=1_4,10_4
END DO
!$OMP END SIMD
END SUBROUTINE
```
```
% flang -fopenmp bar.f90 |& head -23
flang: flang/lib/Lower/OpenMP/ClauseProcessor.cpp:653: void Fortran::lower::omp::addAlignedClause(Fortran::lower::AbstractConverter&, const Aligned&, llvm::SmallVectorImpl<mlir::Value>&, llvm::SmallVectorImpl<mlir::Attribute>&): Assertion `(alignment & (alignment - 1)) == 0 && "alignment is not power of 2"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: flang -fc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelocation-model pic -pic-level 2 -pic-is-pie -target-cpu x86-64 -fopenmp -resource-dir lib/clang/22 -mframe-pointer=all -o /tmp/bar-f18b08.o -x f95 bar.f90
#0 0x0000000004e50558 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (flang+0x4e50558)
#1 0x0000000004e4d3f4 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#2 0x00007fa3b6a3e730 __restore_rt (/lib64/libc.so.6+0x3e730)
#3 0x00007fa3b6a8b52c __pthread_kill_implementation (/lib64/libc.so.6+0x8b52c)
#4 0x00007fa3b6a3e686 gsignal (/lib64/libc.so.6+0x3e686)
#5 0x00007fa3b6a28833 abort (/lib64/libc.so.6+0x28833)
#6 0x00007fa3b6a2875b _nl_load_domain.cold (/lib64/libc.so.6+0x2875b)
#7 0x00007fa3b6a373c6 (/lib64/libc.so.6+0x373c6)
#8 0x00000000057924f9 (flang+0x57924f9)
#9 0x000000000578b994 bool Fortran::lower::omp::ClauseProcessor::findRepeatableClause<tomp::clause::AlignedT<Fortran::evaluate::DynamicType, Fortran::lower::omp::IdTyTemplate<Fortran::evaluate::Expr<Fortran::evaluate::SomeType>>, Fortran::evaluate::Expr<Fortran::evaluate::SomeType>>>(std::function<void (tomp::clause::AlignedT<Fortran::evaluate::DynamicType, Fortran::lower::omp::IdTyTemplate<Fortran::evaluate::Expr<Fortran::evaluate::SomeType>>, Fortran::evaluate::Expr<Fortran::evaluate::SomeType>> const&, Fortran::parser::CharBlock const&)>) const (flang+0x578b994)
#10 0x000000000578b9e5 Fortran::lower::omp::ClauseProcessor::processAligned(mlir::omp::AlignedClauseOps&) const (flang+0x578b9e5)
...
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs