[Llvm-bgq-discuss] fatal error: error in backend: Cannot select: 0x10040606cd0: f64 = extract_vector_elt 0x10040604570, 0x100402cc320 [ORD=1322] [ID=22]

Hal Finkel hfinkel at anl.gov
Mon Jun 17 11:15:28 CDT 2013


----- Original Message -----
> 
> Hal
> 
> 
> Thanks!
> 
> 
> Out of curiosity: What about the opposite, inserting a vector
> element?

This is still handled by LLVM's default logic, and so should work (although I don't recall if I've looked in detail at the code quality).

 -Hal

> 
> 
> -erik
> 
> 
> 
> 
> 
> On Mon, Jun 17, 2013 at 11:36 AM, Hal Finkel < hfinkel at anl.gov >
> wrote:
> 
> 
> Erik,
> 
> I've fixed this in my local repository; so this will be fixed in the
> next patchset release.
> 
> The cause of this error was that I did not understand that the
> 'index' argument of LLVM's extract-vector-element operation could be
> non-constant. I've added an implementation for this 'general' case
> as sldi (left shift by 5) -> qvlpclsx
> -> qvfperm. The constant index case is still handled by qvesplati as
> it was before.
> 
> Thanks again,
> Hal
> 
> 
> 
> ----- Original Message -----
> > Erik,
> > 
> > Thanks! I'll get this (and your previous bug) fixed soon.
> > 
> > -Hal
> > 
> > ----- Original Message -----
> > > I received the following error message from clang on Vesta that I
> > > am
> > > reporting here instead of on bugs.llvm.org :
> > > 
> > > Clang invocation:
> > > 
> > > /home/projects/llvm/bin/bgclang++11 -O0
> > > -I/soft/compilers/ibmcmp-feb2013/xlmass/bg/7.3/include -o
> > > CMakeFiles/bench.dir/bench.cc.o -c
> > > /home/eschnett/src/vecmathlib-qpx/bench.cc
> > > 
> > > Error message:
> > > 
> > > In file included from
> > > /home/eschnett/src/vecmathlib-qpx/bench.cc:5:
> > > In file included from
> > > /home/eschnett/src/vecmathlib-qpx/vecmathlib.h:76:
> > > /home/eschnett/src/vecmathlib-qpx/vec_double_qpx.h:11:2: warning:
> > > "TODO"
> > > [-W#warnings]
> > > #warning "TODO"
> > > ^
> > > /home/eschnett/src/vecmathlib-qpx/vec_double_qpx.h:441:2:
> > > warning:
> > > "TODO"
> > > [-W#warnings]
> > > #warning "TODO"
> > > ^
> > > fatal error: error in backend: Cannot select: 0x100103bdc20: f64
> > > =
> > > extract_vector_elt 0x10010719670, 0x10010734610 [ORD=1322]
> > > [ID=22]
> > > 0x10010719670: v4f64,ch = load 0x10010734810, 0x10010353f60,
> > > 0x10010749c00<LD32[%v]> [ORD=1320] [ID=21]
> > > 0x10010353f60: i64,ch = load 0x10010734810, 0x100103be020,
> > > 0x10010749c00<LD8[%this.addr]> [ORD=1318] [ID=19]
> > > 0x100103be020: i64 = FrameIndex<0> [ORD=1316] [ID=6]
> > > 0x10010749c00: i64 = undef [ORD=1316] [ID=7]
> > > 0x10010749c00: i64 = undef [ORD=1316] [ID=7]
> > > 0x10010734610: i64,ch = load 0x10010734810, 0x100107383f0,
> > > 0x10010749c00<LD4[%n.addr], zext from i32> [ID=18]
> > > 0x100107383f0: i64 = FrameIndex<1> [ORD=1317] [ID=8]
> > > 0x10010749c00: i64 = undef [ORD=1316] [ID=7]
> > > In function: _ZNK10vecmathlib7realvecIdLi4EEixEi
> > > clang: error: clang frontend command failed with exit code 70
> > > (use
> > > -v
> > > to
> > > see invocation)
> > > clang version 3.4 (login1.mcs.anl.gov:src/llvm-trunk/tools/clang
> > > a56f5370124826a853d38050afa60fe85096870b)
> > > (login1.mcs.anl.gov:src/llvm-trunk
> > > 66fd9b1b79e04004afe6eca8a438d6430341aa00)
> > > Target: powerpc64-bgq-linux
> > > Thread model: posix
> > > clang: note: diagnostic msg: PLEASE submit a bug report to
> > > http://llvm.org/bugs/ and include the crash backtrace,
> > > preprocessed
> > > source,
> > > and associated run script.
> > > clang: note: diagnostic msg:
> > > ********************
> > > 
> > > PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
> > > Preprocessed source(s) and associated run script(s) are located
> > > at:
> > > clang: note: diagnostic msg: /tmp/bench-PYtUac.cpp
> > > clang: note: diagnostic msg: /tmp/bench-PYtUac.sh
> > > clang: note: diagnostic msg:
> > > 
> > > 
> > > -erik
> > > 
> > > --
> > > Erik Schnetter < schnetter at cct.lsu.edu >
> > > http://www.perimeterinstitute.ca/personal/eschnetter/
> > > 
> > > _______________________________________________
> > > llvm-bgq-discuss mailing list
> > > llvm-bgq-discuss at lists.alcf.anl.gov
> > > https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss
> > > 
> > _______________________________________________
> > llvm-bgq-discuss mailing list
> > llvm-bgq-discuss at lists.alcf.anl.gov
> > https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss
> > 
> 
> 
> 
> 
> --
> Erik Schnetter < schnetter at cct.lsu.edu >
> http://www.perimeterinstitute.ca/personal/eschnetter/


More information about the llvm-bgq-discuss mailing list