[LLVMbugs] [Bug 5877] New: llc produces bad c code or you tell me.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Dec 25 09:02:47 PST 2009


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

           Summary: llc produces bad c code or you tell me.
           Product: tools
           Version: 2.6
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: anteusz at freemail.hu
                CC: llvmbugs at cs.uiuc.edu


I have a command something like this:
llc -march=c <D:\m\cpp\tpsf.o >D:\m\cpp\tpsf.c

there seems to be a problem with this code
llvm_cbe_bb1:
  llvm_cbe_tmp__29 = (&llvm_cbe_r_2e_0_2e_0_2e_val->field1);
  __asm__ volatile ("lock\n\tincl %0"
        :"=m"(llvm_cbe_tmp__29)
        :"m"(*(llvm_cbe_tmp__29))"cc"); // this is line 5620
  llvm_cbe__2e_pre = *llvm_cbe_tmp__27;
  llvm_cbe_tmp__30__PHI_TEMPORARY = llvm_cbe__2e_pre;   /* for PHI node */
  goto llvm_cbe_bb2;

Both tcc and gcc cannot compile it.
gcc:
d:\m\cpp\tpsf.c: In function `_ZN5boost6detail12shared_countaSERKS1_':
d:\m\cpp\tpsf.c:5620: error: syntax error before string constant

I hope that is enough.
tcc:
d:/m/cpp/tpsf.c:5620: ')' expected


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