[LLVMbugs] [Bug 4478] New: Assertion failed: (i == ti || !mi->getOperand(i).isReg() || mi->getOperand(i).getReg() != regA), function runOnMachineFunction, file TwoAddressInstructionPass.cpp, line 812.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Jun 29 09:39:12 PDT 2009


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

           Summary: Assertion failed: (i == ti || !mi->getOperand(i).isReg()
                    || mi->getOperand(i).getReg() != regA), function
                    runOnMachineFunction, file
                    TwoAddressInstructionPass.cpp, line 812.
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu


when compiling the attached program I get this:

lev /tmp$ clang -O2 tftp-proxy.c                                               
                                                                       
Assertion failed: (i == ti || !mi->getOperand(i).isReg() ||
mi->getOperand(i).getReg() != regA), function runOnMachineFunction, file
TwoAddressInstructionPass.cpp, line 812.
Stack dump:
0.      Program arguments: /usr/local/bin/../libexec/clang-cc -triple
x86_64-unknown-freebsd7.2 -S -disable-free -main-file-name tftp-proxy.c
--relocation-model static --disable-fp-elim --unwind-tables=1 --mcpu=x86-64
--fmath-errno=1 -O2 -fdiagnostics-show-option -o /tmp/cc-z1bJ7B.s -x c
tftp-proxy.c 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Two-Address instruction pass' on function '@main'

without the -O2 it works.


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