New Issue: Assertion castIsValid(op, S, Ty) && "Invalid cast!"' failed in LLVM test_blas1

17898, "leekillough", "Assertion castIsValid(op, S, Ty) && "Invalid cast!"' failed in LLVM test_blas1", "2021-06-10T05:23:13Z"

Error output with test_blas1 and LLVM:

chpl: /lus/scratch/killough/chapel/third-party/llvm/llvm-src/lib/IR/Instructions.cpp:2873: static llvm::CastInst* llvm\
::CastInst::Create(llvm::Instruction::CastOps, llvm::Value*, llvm::Type*, const llvm::Twine&, llvm::Instruction*): Assertion `castIsValid(op, S, Ty) && "Invalid cast!"' failed.
timedexec: target program died with signal 6, with coredump

The LLVM source code where the assertion fails (llvm-src/lib/IR/Instructions.cpp:2873):

CastInst *CastInst::Create(Instruction::CastOps op, Value *S, Type *Ty,
  const Twine &Name, Instruction *InsertBefore) {
  assert(castIsValid(op, S, Ty) && "Invalid cast!");

Associated Future Test(s):

test/library/packages/BLAS/test_blas1.chpl

Configuration Information

  • Output of chpl --version:
chpl version 1.25.0 pre-release (8fa4cda601)
  built with LLVM version 11.0.1
  • Output of $CHPL_HOME/util/printchplenv --anonymize:
CHPL_TARGET_PLATFORM: cray-xc *
CHPL_TARGET_COMPILER: llvm *
CHPL_TARGET_ARCH: x86_64 *
CHPL_TARGET_CPU: sandybridge *
CHPL_LOCALE_MODEL: flat *
CHPL_COMM: none *
CHPL_TASKS: qthreads *
CHPL_LAUNCHER: slurm-srun *
CHPL_TIMERS: generic *
CHPL_UNWIND: none *
CHPL_MEM: jemalloc *
CHPL_ATOMICS: cstdlib *
CHPL_GMP: bundled *
CHPL_HWLOC: bundled *
CHPL_RE2: bundled *
CHPL_LLVM: bundled *
CHPL_AUX_FILESYS: none *
  • Back-end compiler and version, e.g. gcc --version or clang --version:
LLVM version 11.0.1
  • (For Cray systems only) Output of module list:
  1) modules/3.2.11.4                                 13) pmi/5.0.17
  2) craype-network-aries                             14) dmapp/7.1.1-7.0.1.1_4.61__g38cf134.ari
  3) eproxy/2.0.24-7.0.1.1_5.14__g45c478a.ari         15) gni-headers/5.0.12.0-7.0.1.1_6.36__g3b1768f.ari
  4) cray-mpich/7.7.17                                16) xpmem/2.2.20-7.0.1.1_4.20__g0475745.ari
  5) craype-sandybridge                               17) job/2.2.4-7.0.1.1_3.47__g36b56f4.ari
  6) gcc/9.3.0                                        18) dvs/2.12_2.2.165-7.0.1.1_14.4__ge967908e
  7) craype/2.7.8.1                                   19) alps/6.6.58-7.0.1.1_6.19__g437d88db.ari
  8) cray-fftw/3.3.8.11.2                             20) rca/2.2.20-7.0.1.1_4.61__g8e3fb5b.ari
  9) cray-hdf5-parallel/1.12.0.4                      21) atp/3.13.1
 10) cray-libsci/20.09.1                              22) perftools-base/21.05.0
 11) udreg/2.3.2-7.0.1.1_3.47__g8175d3d.ari           23) PrgEnv-gnu/6.0.10
 12) ugni/6.0.14.0-7.0.1.1_7.49__ge78e5b0.ari