LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 2257 - Assertion in FP stackifier
Summary: Assertion in FP stackifier
Status: RESOLVED FIXED
Alias: None
Product: libraries
Classification: Unclassified
Component: Backend: X86 (show other bugs)
Version: trunk
Hardware: PC Linux
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks: 2268
  Show dependency tree
 
Reported: 2008-04-27 18:59 PDT by Anton Korobeynikov
Modified: 2009-07-07 13:47 PDT (History)
3 users (show)

See Also:
Fixed By Commit(s):


Attachments
Bytecode (648 bytes, application/octet-stream)
2008-04-27 18:59 PDT, Anton Korobeynikov
Details
Another bytecode (588 bytes, application/octet-stream)
2008-04-27 19:02 PDT, Anton Korobeynikov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Korobeynikov 2008-04-27 18:59:15 PDT
Created attachment 1609 [details]
Bytecode

Consider attached bytecode.

$ ./llc bugpoint-reduced-simplified.bc 
llc: /home/asl/proj/llvm/src/lib/Target/X86/X86FloatingPoint.cpp:975: void<unnamed>::FPS::handleSpecialFP(llvm::ilist_iterator<llvm::MachineInstr>&): Assertion `StackTop == 1 && "Stack should have one element on it to return!"' failed.
./llc[0x878a1ad]
/lib/libc.so.6(abort+0xe8)[0xb7c687e8]
/lib/libc.so.6(__assert_fail+0xdf)[0xb7c6040f]
./llc[0x82a9f66]
Comment 1 Anton Korobeynikov 2008-04-27 19:02:08 PDT
Created attachment 1610 [details]
Another bytecode

I think there is different testcase for the same problem (assertion message is different though)
Comment 2 Evan Cheng 2009-02-10 13:01:02 PST
We can't handle inline asm with x87 instructions.
Comment 3 Pawel Worach 2009-05-27 13:30:32 PDT
I can not reproduce this with r72485. Fixed ?
Comment 4 Chris Lattner 2009-07-07 13:47:55 PDT
Yep, probably fixed by Rafael