[LLVMbugs] [Bug 2269] New: Assertion `DestReg == X86::ST0 && " Can only copy to TOS right now"' failed.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Apr 30 12:33:21 PDT 2008


http://llvm.org/bugs/show_bug.cgi?id=2269

           Summary: Assertion `DestReg == X86::ST0 && "Can only copy to TOS
                    right now"' failed.
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu


While building glibc I get a new error:

cc1: /home/edwin/llvm/llvm-svn/trunk/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.
w_atan2.c:43: internal compiler error: Aborted

This error occurs 51 times during the build:
$ grep "TOS right now" ../../i386-libc/log|wc -l
51

$ uname -a
Linux thunder 2.6.25-rc6-00268-gd2532dd-dirty #23 SMP PREEMPT Sun Mar 23
18:34:55 EET 2008 i686 GNU/Linux

I have a bugpoint reduced file this time, to reproduce:
$ llc bugpoint-reduced-simplified.bc
llc: /home/edwin/llvm/llvm-svn/trunk/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.
llc[0x852b506]
/lib/i686/cmov/libc.so.6(abort+0x101)[0x4ecdc871]
/lib/i686/cmov/libc.so.6(__assert_fail+0xee)[0x4ecd40ee]
llc(_ZNK4llvm12X86InstrInfo12copyRegToRegERNS_17MachineBasicBlockENS_14ilist_iteratorINS_12MachineInstrEEEjjPKNS_19TargetRegisterClassES8_+0x607)[0x81f0427]
Aborted

; ModuleID = 'bugpoint-reduced-simplified.bc'
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
target triple = "i386-pc-linux-gnu"

@atan2 = alias double (double, double)* @__atan2                ; <double
(double, double)*> [#uses=0]

define double @__atan2(double %y, double %x) nounwind  {
entry:
        %asmtmp = tail call x86_fp80 asm sideeffect "fpatan\0A\09",
"={st},0,{st(1)},~{dirflag},~{fpsr},~{flags},~{st(1)}"( double %x, double %y )
nounwind ; <x86_fp80> [#uses=0]
        unreachable
}


-- 
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