[LLVMbugs] [Bug 2554] New: assertion failure in X86TargetLowering::LowerVECTOR_SHUFFLE
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed Jul 16 21:39:38 PDT 2008
http://llvm.org/bugs/show_bug.cgi?id=2554
Summary: assertion failure in
X86TargetLowering::LowerVECTOR_SHUFFLE
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nicholas at mxc.ca
CC: llvmbugs at cs.uiuc.edu
This turned up in make check:
llvm-as < test/CodeGen/PowerPC/vec_spat.ll | llc -march=x86 -mattr=+sse2
llc: /home/nicholas/llvm-commit/include/llvm/Support/Casting.h:199: typename
llvm::cast_retty<To, From>::ret_type llvm::cast(const Y&) [with X =
llvm::ConstantSDNode, Y = llvm::SDOperand]: Assertion `isa<X>(Val) &&
"cast<Ty>() argument of incompatible type!"' failed.
llc: /home/nicholas/llvm-commit/include/llvm/Support/Casting.h:199: typename
llvm::cast_retty<To, From>::ret_type llvm::cast(const Y&) [with X =
llvm::ConstantSDNode, Y = llvm::SDOperand]: Assertion `isa<X>(Val) &&
"cast<Ty>() argument of incompatible type!"' failed.
Debug/bin/llc[0x8b1cab2]
Debug/bin/llc[0x8b1cbe4]
[0xffffe400]
Aborted
Backtrace:
[New Thread 0xf7c9a6c0 (LWP 28956)]
Program received signal SIGABRT, Aborted.
[Switching to Thread 0xf7c9a6c0 (LWP 28956)]
0xffffe425 in __kernel_vsyscall ()
(gdb) bt
#0 0xffffe425 in __kernel_vsyscall ()
#1 0xf7cc75e0 in raise () from /lib/i686/cmov/libc.so.6
#2 0xf7cc8fb8 in abort () from /lib/i686/cmov/libc.so.6
#3 0xf7cc056e in __assert_fail () from /lib/i686/cmov/libc.so.6
#4 0x084515bc in llvm::cast<llvm::ConstantSDNode, llvm::SDOperand> (
Val=@0xffd999ec)
at /home/nicholas/llvm-commit/include/llvm/Support/Casting.h:199
#5 0x0874d600 in isUndefShuffle (N=0x8d0485c) at X86ISelLowering.cpp:2702
#6 0x0876646c in llvm::X86TargetLowering::LowerVECTOR_SHUFFLE (
this=0x8cf9ab8, Op={Val = 0x8d0485c, ResNo = 0}, DAG=@0xffd9b6cc)
at X86ISelLowering.cpp:3654
#7 0x0876d7f3 in llvm::X86TargetLowering::LowerOperation (this=0x8cf9ab8, Op=
{Val = 0x8d0485c, ResNo = 0}, DAG=@0xffd9b6cc)
at X86ISelLowering.cpp:5714
#8 0x08869191 in LegalizeOp (this=0xffd9b33c, Op={Val = 0x8d0485c, ResNo = 0})
at LegalizeDAG.cpp:1522
#9 0x088935d1 in HandleOp (this=0xffd9b33c, Op={Val = 0x8d0485c, ResNo = 0})
at LegalizeDAG.cpp:455
#10 0x088939e3 in LegalizeDAG (this=0xffd9b33c) at LegalizeDAG.cpp:334
#11 0x08893b23 in llvm::SelectionDAG::Legalize (this=0xffd9b6cc)
at LegalizeDAG.cpp:7045
#12 0x08818629 in llvm::SelectionDAGISel::CodeGenAndEmitDAG (this=0x8cf9a48,
DAG=@0xffd9b6cc) at SelectionDAGISel.cpp:5313
#13 0x08830978 in llvm::SelectionDAGISel::SelectBasicBlock (this=0x8cf9a48,
LLVMBB=0x8cef0f0, MF=@0x8d02188, FuncInfo=@0xffd9bb14,
AllNodes=@0xffd9b9d4) at SelectionDAGISel.cpp:5409
#14 0x0883215d in llvm::SelectionDAGISel::SelectAllBasicBlocks (
this=0x8cf9a48, Fn=@0x8cee478, MF=@0x8d02188, FuncInfo=@0xffd9bb14)
at SelectionDAGISel.cpp:5389
#15 0x08832bfc in llvm::SelectionDAGISel::runOnFunction (this=0x8cf9a48,
Fn=@0x8cee478) at SelectionDAGISel.cpp:4883
#16 0x086509a1 in runOnFunction (this=0x8cf9a48, Fn=@0x8cee478)
at X86ISelDAGToDAG.cpp:123
#17 0x08aad7aa in llvm::FPPassManager::runOnFunction (this=0x8cf21b8,
F=@0x8cee478) at PassManager.cpp:1241
#18 0x08aada2a in llvm::FunctionPassManagerImpl::run (this=0x8cef398,
F=@0x8cee478) at PassManager.cpp:1196
#19 0x08aadb81 in llvm::FunctionPassManager::run (this=0xffd9bd3c,
F=@0x8cee478) at PassManager.cpp:1141
#20 0x083ef7da in main (argc=3, argv=0xffd9be54) at llc.cpp:302
(gdb) up 5
#5 0x0874d600 in isUndefShuffle (N=0x8d0485c) at X86ISelLowering.cpp:2702
2702 unsigned Val = cast<ConstantSDNode>(Arg)->getValue();
(gdb) p Arg
$1 = {Val = 0x8d044a4, ResNo = 0}
(gdb) p Arg->Val
$2 = (class llvm::SDNode *) 0x8d044a4
(gdb) p Arg->Val->dump()
0x8d044a4: v4i32 = BUILD_VECTOR 0x8d04064, 0x8d04064, 0x8d03fdc, 0x8d04064$3 =
void
--
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