[LLVMbugs] [Bug 23957] New: Assertion `UpdatedSlot < StackTop && Dest < 7' failed on i686 MSVC

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jun 25 18:03:36 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23957

            Bug ID: 23957
           Summary: Assertion `UpdatedSlot < StackTop && Dest < 7' failed
                    on i686 MSVC
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: alex at crichton.co
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The following IR:

    target triple = "i686-pc-windows-msvc"

    define void @foo() {                 
    entry-block:                         
      %w = load double, double* undef    
      %r = fptoui double %w to i32       
      store i32 %r, i32* undef           
      %t = fsub double %w, %w            
      store double %t, double* undef     
      ret void                           
    }                                    

will generate the following error when run through llc

```
llc: /home/alex/code/llvm/lib/Target/X86/X86FloatingPoint.cpp:1232: void
{anonymous}::FPS::handleTwoArgFP(llvm::MachineBasicBlock::iterator&): Assertion
`UpdatedSlot < StackTop && Dest < 7' failed.
0  llc             0x000000000223a714
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 44
1  llc             0x000000000223aa29
2  llc             0x000000000223952a
3  libpthread.so.0 0x00007f4b7b970340
4  libc.so.6       0x00007f4b7a984cc9 gsignal + 57
5  libc.so.6       0x00007f4b7a9880d8 abort + 328
6  libc.so.6       0x00007f4b7a97db86
7  libc.so.6       0x00007f4b7a97dc32
8  llc             0x0000000001574bde
9  llc             0x0000000001572805
10 llc             0x0000000001572136
11 llc             0x0000000001a48f0b
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 95
12 llc             0x000000000217d0dc
llvm::FPPassManager::runOnFunction(llvm::Function&) + 290
13 llc             0x000000000217d259
llvm::FPPassManager::runOnModule(llvm::Module&) + 97
14 llc             0x000000000217d5af
15 llc             0x000000000217dc8d
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 249
16 llc             0x000000000217dec7
llvm::legacy::PassManager::run(llvm::Module&) + 39
17 llc             0x0000000000c575f7
18 llc             0x0000000000c565da main + 242
19 libc.so.6       0x00007f4b7a96fec5 __libc_start_main + 245
20 llc             0x0000000000c535d9
Stack dump:
0.      Program arguments: ../llvm/build/Debug+Asserts/bin/llc
./bugpoint-reduced-simplified.ll 
1.      Running pass 'Function Pass Manager' on module
'./bugpoint-reduced-simplified.ll'.
2.      Running pass 'X86 FP Stackifier' on function '@foo'
zsh: abort (core dumped)  ../llvm/build/Debug+Asserts/bin/llc
./bugpoint-reduced-simplified.ll
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150626/32947392/attachment.html>


More information about the llvm-bugs mailing list