[LLVMbugs] [Bug 2946] New: CellSPU Error: unknown pseudo-op: `.cstring'
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Oct 24 15:05:47 PDT 2008
http://llvm.org/bugs/show_bug.cgi?id=2946
Summary: CellSPU Error: unknown pseudo-op: `.cstring'
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: bwatt at us.ibm.com
CC: llvmbugs at cs.uiuc.edu
When using the CellSPU backend the following program generates a "Error:
unknown pseudo-op: `.cstring'" when compiling with GNU Cell SDK assembler,
spu-as. It appears the assembler directive, .cstring, is not supported. One
possible solution may be to generate ".section .rodata" instead.
Input, main.c:
char *s = "test";
int main(unsigned long long id) {
return 0;
}
Script:
clang -emit-llvm main.c
llvm-as main.ll -f
opt -std-compile-opts main.bc -o main.opt.bc -f
llc -march=cellspu main.opt.bc -f -o main.s
spu-as -g -o main.o main.s
Assembler file, main.s
.text
.align 3
.global main
.type main, @function
main:
il $3, 0
bi $lr
.size main,.-main
.cstring
.align 4
.str: # '.str'
.asciz "test"
.global s
.data
.align 3
s: # 's'
.long .str
.ident "(llvm 2.2+) STI CBEA Cell SPU backend"
--
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