[LLVMbugs] [Bug 12274] New: ARM NEON assertion - "No legal register class for VT supports that SubIdx"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 15 20:00:31 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=12274

             Bug #: 12274
           Summary: ARM NEON assertion - "No legal register class for VT
                    supports that SubIdx"
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: srhines at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8215
  --> http://llvm.org/bugs/attachment.cgi?id=8215
char4 division example

While running this bitcode sample through LLVM/Clang for ARM (with NEON), I can
trigger the following assertion:

clang -ccc-host-triple armv7a-none-linux-gnueabi math.bc -c
clang:
/srhines-dt/srhines/llvm_git/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp:419:
unsigned int llvm::InstrEmitter::ConstrainForSubReg(unsigned int, unsigned int,
llvm::EVT, llvm::DebugLoc): Assertion `RC && "No legal register class for VT
supports that SubIdx"' failed.
0  clang 0x098e45cb
Stack dump:
0.    Program arguments: /srhines-dt/srhines/llvm_git/llvm-bin/bin/clang -cc1
-triple armv7-none-linux-gnueabi -S -disable-free -main-file-name math.bc
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-abi
aapcs-linux -target-cpu cortex-a8 -mfloat-abi soft -target-feature
+soft-float-abi -momit-leaf-frame-pointer -coverage-file /tmp/math-cTgEWA.s
-resource-dir /srhines-dt/srhines/llvm_git/llvm-bin/bin/../lib/clang/3.1
-fno-dwarf-directory-asm -fdebug-compilation-dir
/srhines-dt/srhines/android/out/target/common/obj/APPS/RSTest_intermediates/src/renderscript/res/raw
-ferror-limit 19 -fmessage-length 80 -mstackrealign -fno-signed-char
-fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/math-cTgEWA.s -x ir
math.bc 
1.    Code generation
2.    Running pass 'Function Pass Manager' on module 'math.bc'.
3.    Running pass 'ARM Instruction Selection' on function '@math_test'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list