[LLVMbugs] [Bug 8521] New: NEON instruction VQSHLU producing bad cast
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Nov 1 04:28:44 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=8521
Summary: NEON instruction VQSHLU producing bad cast
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rengolin at gmail.com
CC: llvmbugs at cs.uiuc.edu
When lowering vqshlu_n_s8() (file attached), Clang breaks with bad cast.
Command line:
$ clang -ccc-host-triple armv7a-none-eabi -ccc-gcc-name arm-none-eabi-gcc
-mfloat-abi=hard -w -emit-llvm -mcpu=cortex-a8 -S vqshlu_n.c -o -
Error:
clang: Constants.cpp:1174: static llvm::Constant*
llvm::ConstantExpr::getCast(unsigned int, llvm::Constant*, const llvm::Type*):
Assertion `CastInst::castIsValid(opc, C, Ty) && "Invalid constantexpr cast!"'
failed.
(...)
7 clang 0x00000000007c2885 llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateCast(llvm::Instruction::CastOps, llvm::Value*, llvm::Type const*,
llvm::Twine const&) + 101
8 clang 0x00000000008fd4ae
clang::CodeGen::CodeGenFunction::EmitNeonCall(llvm::Function*,
llvm::SmallVectorImpl<llvm::Value*>&, char const*, bool, unsigned int, bool) +
238
(...)
--
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