[LLVMbugs] [Bug 3161] New: llc -mach=cellspu adds dash dot (-.) to branch targets

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Dec 3 12:14:29 PST 2008


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

           Summary: llc -mach=cellspu adds dash dot (-.) to branch targets
           Product: new-bugs
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: snowm at us.ibm.com
                CC: llvmbugs at cs.uiuc.edu


For the c language input:

void sub1(void) {
  printf("in sub1\n");
}
int main(unsigned long long id) {
  sub1();
  printf("returned from sub1\n");
return 0;
}

When the llc command with the option -march=cellspu is run, the code generated
in the assembly file:
   brsl    $lr, sub1-.
should not have the -. appended to the target.

If the -. is removed and the code is assembled and linked for the spu the test
will execute successfully.

Note that external symbols such as:
        brasl   $lr, printf
do not have the decoration.

The same bitcode will generate correct output with the llc command and the
-march=ppc32:
        bl sub1


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