-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzilla
Description
| 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
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzilla