Skip to content

clang crash targeting aarch64-w64-windows-gnu: Assertion failed: DT.dominates(RHead, LHead) in CompareSCEVComplexity #57825

@jeremyd2019

Description

@jeremyd2019
2022-09-18T17:36:39.8582419Z FAILED: kernel/CMakeFiles/kernel.dir/CMakeFiles/dtrsm_kernel_LN.c.obj 
2022-09-18T17:36:39.8594226Z C:\msys64\clangarm64\bin\clang.exe  -IC:/M/mingw-w64-openblas/src/OpenBLAS-0.3.21 -IC:/M/mingw-w64-openblas/src/build-CLANGARM64-32 -DHAVE_C11 -DMS_ABI -Wall -DSMP_SERVER -DMAX_CPU_NUMBER=64 -DMAX_PARALLEL_NUMBER=1 -DNO_AFFINITY -DVERSION="\"0.3.21\"" -DBUILD_SINGLE -DBUILD_DOUBLE -DBUILD_COMPLEX -DBUILD_COMPLEX16 -O3 -DNDEBUG -MD -MT kernel/CMakeFiles/kernel.dir/CMakeFiles/dtrsm_kernel_LN.c.obj -MF kernel\CMakeFiles\kernel.dir\CMakeFiles\dtrsm_kernel_LN.c.obj.d -o kernel/CMakeFiles/kernel.dir/CMakeFiles/dtrsm_kernel_LN.c.obj -c C:/M/mingw-w64-openblas/src/build-CLANGARM64-32/kernel/CMakeFiles/dtrsm_kernel_LN.c
2022-09-18T17:36:39.8606200Z In file included from C:/M/mingw-w64-openblas/src/build-CLANGARM64-32/kernel/CMakeFiles/dtrsm_kernel_LN.c:11:
2022-09-18T17:36:39.8612214Z In file included from C:/M/mingw-w64-openblas/src/OpenBLAS-0.3.21/kernel/arm64/../generic/trsm_kernel_LN.c:39:
2022-09-18T17:36:39.8617697Z In file included from C:/M/mingw-w64-openblas/src/OpenBLAS-0.3.21/common.h:466:
2022-09-18T17:36:39.8624037Z C:/M/mingw-w64-openblas/src/OpenBLAS-0.3.21/common_arm64.h:106:65: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
2022-09-18T17:36:39.8628825Z   __asm__ __volatile__ ("mrs %0,cntfrq_el0; clz %w0, %w0":"=&r"(shift));
2022-09-18T17:36:39.8632081Z                                                                 ^
2022-09-18T17:36:39.8636387Z C:/M/mingw-w64-openblas/src/OpenBLAS-0.3.21/common_arm64.h:106:30: note: use constraint modifier "w"
2022-09-18T17:36:39.8639790Z   __asm__ __volatile__ ("mrs %0,cntfrq_el0; clz %w0, %w0":"=&r"(shift));
2022-09-18T17:36:39.8642236Z                              ^~
2022-09-18T17:36:39.8667980Z                              %w0
2022-09-18T17:36:39.8673502Z PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
2022-09-18T17:36:39.8677408Z Stack dump:
2022-09-18T17:36:39.8688157Z 0.	Program arguments: C:\\msys64\\clangarm64\\bin\\clang.exe -IC:/M/mingw-w64-openblas/src/OpenBLAS-0.3.21 -IC:/M/mingw-w64-openblas/src/build-CLANGARM64-32 -DHAVE_C11 -DMS_ABI -Wall -DSMP_SERVER -DMAX_CPU_NUMBER=64 -DMAX_PARALLEL_NUMBER=1 -DNO_AFFINITY -DVERSION=\"0.3.21\" -DBUILD_SINGLE -DBUILD_DOUBLE -DBUILD_COMPLEX -DBUILD_COMPLEX16 -O3 -DNDEBUG -MD -MT kernel/CMakeFiles/kernel.dir/CMakeFiles/dtrsm_kernel_LN.c.obj -MF kernel\\CMakeFiles\\kernel.dir\\CMakeFiles\\dtrsm_kernel_LN.c.obj.d -o kernel/CMakeFiles/kernel.dir/CMakeFiles/dtrsm_kernel_LN.c.obj -c C:/M/mingw-w64-openblas/src/build-CLANGARM64-32/kernel/CMakeFiles/dtrsm_kernel_LN.c
2022-09-18T17:36:39.8696246Z 1.	<eof> parser at end of file
2022-09-18T17:36:39.8698642Z 2.	Code generation
2022-09-18T17:36:39.8703481Z 3.	Running pass 'Function Pass Manager' on module 'C:/M/mingw-w64-openblas/src/build-CLANGARM64-32/kernel/CMakeFiles/dtrsm_kernel_LN.c'.
2022-09-18T17:36:39.8708334Z 4.	Running pass 'Greedy Register Allocator' on function '@dtrsm_kernel_LN'
2022-09-18T17:36:39.8711382Z Exception Code: 0xC0000005
2022-09-18T17:36:39.8717052Z #0 0x00007ffd7a1c3adc llvm::LiveRange::getNextValue(llvm::SlotIndex, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ull, 4096ull, 128ull>&) (C:\msys64\clangarm64\bin\libLLVM-15.dll+0x3f3adc)
2022-09-18T17:36:39.8722234Z #1 0x00007ffd7a3ca024 llvm::RegAllocBase::postOptimization() (C:\msys64\clangarm64\bin\libLLVM-15.dll+0x5fa024)
2022-09-18T17:36:39.8727420Z #2 0x00007ffd7a3e20d4 llvm::RAGreedy::runOnMachineFunction(llvm::MachineFunction&) (C:\msys64\clangarm64\bin\libLLVM-15.dll+0x6120d4)
2022-09-18T17:36:39.8732465Z #3 0x00007ffd7a28d1d8 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (C:\msys64\clangarm64\bin\libLLVM-15.dll+0x4bd1d8)
2022-09-18T17:36:39.8738976Z clang: error: clang frontend command failed due to signal (use -v to see invocation)
2022-09-18T17:36:39.8740086Z clang version 15.0.0
2022-09-18T17:36:39.8741243Z Target: aarch64-w64-windows-gnu
2022-09-18T17:36:39.8742097Z Thread model: posix
2022-09-18T17:36:39.8742991Z InstalledDir: C:/msys64/clangarm64/bin
2022-09-18T17:36:39.8743832Z clang: note: diagnostic msg: 
2022-09-18T17:36:39.8744581Z ********************
2022-09-18T17:36:39.8745004Z 
2022-09-18T17:36:39.8745504Z PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
2022-09-18T17:36:39.8746586Z Preprocessed source(s) and associated run script(s) are located at:
2022-09-18T17:36:39.8749135Z clang: note: diagnostic msg: C:/msys64/tmp/dtrsm_kernel_LN-36ac6b.c
2022-09-18T17:36:40.3853133Z clang: note: diagnostic msg: C:/msys64/tmp/dtrsm_kernel_LN-36ac6b.sh
2022-09-18T17:36:40.3854715Z 
2022-09-18T17:36:40.3855562Z clang: note: diagnostic msg: 
2022-09-18T17:36:40.3856618Z 
2022-09-18T17:36:40.3856671Z 
2022-09-18T17:36:40.3856703Z 
2022-09-18T17:36:40.3881310Z ********************
2022-09-18T17:36:40.3883186Z 

Files it requested I attach:
dtrsm_kernel_LN-36ac6b.zip

See also msys2/MINGW-packages#13128

/cc @mati865 @mstorsjo

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions