Skip to content

[Mips] Return of a double constant causes an assert. #4331

@llvmbot

Description

@llvmbot
Bugzilla Link 3959
Resolution FIXED
Resolved on Nov 07, 2018 00:17
Version unspecified
OS All
Attachments Test case.
Reporter LLVM Bugzilla Contributor
CC @bcardosolopes

Extended Description

The attached test case causes an assert with the Mips code generator:

[/ellcc/ellcc] main% llvm-as -f t0065.ll
[
/ellcc/ellcc] main% llc -f -march mips t0065.bc
Cannot yet select: 0xa564fc8: f64,ch = load 0xa564c3c, 0xa5651d8, 0xa564f44 <0xa579da8:0> alignment=4
0 llc 0x08d5616d
1 llc 0x08d5669f
2 0x00c27400 __kernel_sigreturn + 0
3 libc.so.6 0x0033ee28 abort + 392
4 llc 0x0859d1eb
5 llc 0x085a0228
6 llc 0x085a30ff
7 llc 0x085a46c4
8 llc 0x085a4a75
9 llc 0x085a4be3
10 llc 0x089b7101 llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 2905
11 llc 0x089b941a llvm::SelectionDAGISel::SelectBasicBlock(llvm::BasicBlock*, llvm::ilist_iteratorllvm::Instruction, llvm::ilist_iteratorllvm::Instruction) + 612
12 llc 0x089b9e29 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function&, llvm::MachineFunction&, llvm::MachineModuleInfo*, llvm::DwarfWriter*, llvm::TargetInstrInfo const&) + 2295
13 llc 0x089babdb llvm::SelectionDAGISel::runOnFunction(llvm::Function&) + 885
14 llc 0x08cd6ae2 llvm::FPPassManager::runOnFunction(llvm::Function&) + 288
15 llc 0x08cd75d0 llvm::FunctionPassManagerImpl::run(llvm::Function&) + 124
16 llc 0x08cd77a1 llvm::FunctionPassManager::run(llvm::Function&) + 159
17 llc 0x083d1662 main + 2687
18 libc.so.6 0x003286e5 __libc_start_main + 229
19 llc 0x083cfb21
Stack dump:
0. Program arguments: llc -f -march mips t0065.bc

  1.  Running pass 'MIPS DAG->DAG Pattern Instruction Selection' on function '@foo'
    

Abort
[~/ellcc/ellcc] main%

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzilla

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions