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 2255 - getCopyRegToReg() does not support ST(1) as dest register
Summary: getCopyRegToReg() does not support ST(1) as dest register
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:
: 2269 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-27 18:35 PDT by Anton Korobeynikov
Modified: 2010-01-01 12:45 PST (History)
3 users (show)

See Also:
Fixed By Commit(s):


Attachments
Test bytecode (564 bytes, application/octet-stream)
2008-04-27 18:35 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:35:52 PDT
Created attachment 1607 [details]
Test bytecode

Consider attached testcase. I'm having:

llc: /home/asl/proj/llvm/src/lib/Target/X86/X86InstrInfo.cpp:1593: virtual void llvm::X86InstrInfo::copyRegToReg(llvm::MachineBasicBlock&, llvm::ilist_iterator<llvm::MachineInstr>, unsigned int, unsigned int, const llvm::TargetRegisterClass*, const llvm::TargetRegisterClass*) const: Assertion `DestReg == X86::ST0 && "Can only copy to TOS right now"' failed.

This currently prevents mingw64 CRT bootstrap with llvm-gcc
Comment 1 Török Edwin 2008-05-01 13:56:36 PDT
*** Bug 2269 has been marked as a duplicate of this bug. ***
Comment 2 Pawel Worach 2009-05-27 13:28:38 PDT
I can not reproduce this with r72485. Fixed ?
Comment 3 Chris Lattner 2010-01-01 12:45:27 PST
Yep, looks fixed.