Skip to content

llc -mach=cellspu adds dash dot (-.) to branch targets #3533

@llvmbot

Description

@llvmbot
Bugzilla Link 3161
Resolution FIXED
Resolved on Nov 07, 2018 00:22
Version unspecified
OS Linux
Reporter LLVM Bugzilla Contributor

Extended Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzilla

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions