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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs