[LLVMbugs] [Bug 10498] New: unsigned int getFPReg(const llvm::MachineOperand&): Assertion `Reg >= X86::FP0 && Reg <= X86::FP6 && "Expected FP register!"' fa
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jul 26 04:05:35 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10498
Summary: unsigned int getFPReg(const llvm::MachineOperand&):
Assertion `Reg >= X86::FP0 && Reg <= X86::FP6 &&
"Expected FP register!"' fa
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nadav.rotem at intel.com
CC: llvmbugs at cs.uiuc.edu
llc: X86FloatingPoint.cpp:316: unsigned int getFPReg(const
llvm::MachineOperand&): Assertion `Reg >= X86::FP0 && Reg <= X86::FP6 &&
"Expected FP register!"' failed.
0 llc 0x000000000153ffea
1 llc 0x0000000001540578
2 libpthread.so.0 0x00002aaaaabd4d60
3 libc.so.6 0x00002aaaab274f45 gsignal + 53
4 libc.so.6 0x00002aaaab276340 abort + 272
5 libc.so.6 0x00002aaaab26e486 __assert_fail + 246
6 llc 0x0000000000e542c8
7 llc 0x0000000000e5606a (anonymous
namespace)::FPS::handleSpecialFP(llvm::ilist_iterator<llvm::MachineInstr>&) +
1412
8 llc 0x0000000000e57f27 (anonymous
namespace)::FPS::processBasicBlock(llvm::MachineFunction&,
llvm::MachineBasicBlock&) + 885
9 llc 0x0000000000e58459 (anonymous
namespace)::FPS::runOnMachineFunction(llvm::MachineFunction&) + 341
10 llc 0x00000000011449ad
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 85
11 llc 0x000000000147a2bb
llvm::FPPassManager::runOnFunction(llvm::Function&) + 371
12 llc 0x000000000147a4b3
llvm::FPPassManager::runOnModule(llvm::Module&) + 81
13 llc 0x0000000001479f67
llvm::MPPassManager::runOnModule(llvm::Module&) + 381
14 llc 0x000000000147b71c llvm::PassManagerImpl::run(llvm::Module&)
+ 116
15 llc 0x000000000147b77f llvm::PassManager::run(llvm::Module&) +
33
16 llc 0x0000000000ab642d main + 2403
17 libc.so.6 0x00002aaaab262304 __libc_start_main + 244
18 llc 0x0000000000ab4b79
Stack dump:
0. Program arguments: ../llc temp.ll -march=x86-64 -mattr=-sse2,-sse41 -o
/dev/null
1. Running pass 'Function Pass Manager' on module 'temp.ll'.
2. Running pass 'X86 FP Stackifier' on function '@autogen_9448_500'
; ModuleID = 'bugpoint-reduced-simplified.bc'
target triple = "x86_64-unknown-linux-gnu"
define void @autogen_9448_500(i8*, i32*, i64*, i32, i8, i64) {
BB:
%A4 = alloca <8 x i64>
%A3 = alloca <8 x i8>
%A2 = alloca <8 x i8>
%A1 = alloca <8 x i32>
%A = alloca <8 x double>
%L = load i8* %0
store i8 -89, i8* %0
%E = extractelement <8 x i32> undef, i32 7
%E5 = extractelement <32 x float> undef, i32 12
%Shuff = shufflevector <8 x double> undef, <8 x double> undef, <8 x i32> <i32
2, i32 4, i32 6, i32 8, i32 10, i32 12, i32 undef, i32 undef>
%Shuff6 = shufflevector <8 x double> %Shuff, <8 x double> %Shuff, <8 x i32>
<i32 4, i32 6, i32 8, i32 10, i32 12, i32 undef, i32 0, i32 undef>
%Shuff7 = shufflevector <8 x double> %Shuff, <8 x double> %Shuff, <8 x i32>
<i32 6, i32 8, i32 10, i32 12, i32 14, i32 0, i32 2, i32 4>
%I = insertelement <8 x double> %Shuff, double 0x3EC3137F3F602019, i32 0
%B = mul i8 %L, -1
%FC = fptosi double 0x3EC3137F3F602019 to i16
%S = select i1 true, i16 %FC, i16 %FC
%S8 = fcmp olt float %E5, 0x3EC6F41020000000
br label %CF42
CF42: ; preds = %BB
%L9 = load i8* %0
store i8 %L, i8* %0
%E10 = extractelement <8 x double> %Shuff, i32 6
%E11 = extractelement <8 x double> %Shuff, i32 0
%Shuff12 = shufflevector <8 x double> %Shuff, <8 x double> %Shuff, <8 x i32>
<i32 3, i32 5, i32 undef, i32 9, i32 11, i32 undef, i32 15, i32 1>
%Shuff13 = shufflevector <8 x double> %Shuff, <8 x double> %Shuff, <8 x i32>
<i32 undef, i32 undef, i32 9, i32 11, i32 13, i32 15, i32 undef, i32 3>
%Shuff14 = shufflevector <8 x double> %Shuff, <8 x double> %Shuff13, <8 x
i32> <i32 7, i32 undef, i32 11, i32 13, i32 15, i32 1, i32 undef, i32 5>
%I15 = insertelement <8 x double> %Shuff12, double 0x3ED4B999595A3E38, i32 1
%B16 = frem <8 x double> %Shuff13, %Shuff
%BC = bitcast float 0x3ECCE7D580000000 to i32
%S17 = select i1 true, i64 -1, i64 %5
%S18 = icmp ule i64 508019, %S17
br label %CF41
CF41: ; preds = %CF41, %CF42
%L19 = load i8* %0
store i8 -1, i8* %0
%E20 = extractelement <8 x double> %Shuff, i32 1
%E21 = extractelement <8 x double> %Shuff, i32 3
%Shuff22 = shufflevector <8 x double> %Shuff, <8 x double> %Shuff, <8 x i32>
<i32 undef, i32 undef, i32 2, i32 4, i32 6, i32 8, i32 10, i32 undef>
%Shuff23 = shufflevector <8 x double> %Shuff, <8 x double> %Shuff, <8 x i32>
<i32 0, i32 2, i32 4, i32 undef, i32 8, i32 undef, i32 undef, i32 14>
%Shuff24 = shufflevector <8 x double> %Shuff, <8 x double> %Shuff12, <8 x
i32> <i32 2, i32 4, i32 6, i32 undef, i32 10, i32 12, i32 undef, i32 0>
%I25 = insertelement <8 x double> %Shuff, double %E10, i32 4
%B26 = fdiv <8 x double> %B16, %Shuff
%FC27 = sitofp i32 338935 to float
%S28 = select i1 false, i32* %1, i32* %1
%S29 = icmp slt i8 -1, %B
br i1 %S29, label %CF41, label %CF43
CF43: ; preds = %CF41
%L30 = load i32* %S28
store i32 413419, i32* %S28
%E31 = extractelement <8 x double> %Shuff6, i32 2
%E32 = extractelement <8 x double> %Shuff, i32 4
%Shuff33 = shufflevector <8 x double> %Shuff12, <8 x double> %Shuff, <8 x
i32> <i32 7, i32 9, i32 11, i32 undef, i32 15, i32 1, i32 3, i32 5>
%Shuff34 = shufflevector <8 x double> %Shuff, <8 x double> %Shuff, <8 x i32>
<i32 9, i32 undef, i32 13, i32 undef, i32 1, i32 3, i32 5, i32 7>
%Shuff35 = shufflevector <8 x double> %Shuff, <8 x double> %Shuff, <8 x i32>
<i32 11, i32 13, i32 15, i32 1, i32 3, i32 5, i32 7, i32 undef>
%I36 = insertelement <8 x double> %Shuff, double %E10, i32 5
%B37 = fadd <8 x double> %Shuff14, %Shuff
%FC38 = uitofp i8 -89 to double
%S39 = select i1 true, <8 x double>* %A, <8 x double>* %A
%S40 = icmp slt i32 413419, 0
br label %CF
CF: ; preds = %CF43
store <8 x double> %Shuff12, <8 x double>* %A
store i32 %3, i32* %S28
store i32 %3, i32* %S28
store <8 x double> %Shuff, <8 x double>* %A
store <8 x double> %Shuff33, <8 x double>* %S39
ret 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