[LLVMdev] Problem with llc and ppc64

Andreas Neustifter e0325716 at student.tuwien.ac.at
Wed Jun 10 06:03:54 PDT 2009


Hi,

I'm having problem with generating ppc64-assembler code.

First I create ppc64-assembler with llc:

	llc -march=ppc64 gzip.bc -f -o gzip.s

Then I try to compile this with a cross-compiler on x86_64-linux to ppc64-linux:

	.../crosstools/gcc-4.2.4-glibc-2.3.6/powerpc64-unknown-linux-gnu/bin/powerpc64-unknown-linux-gnu-gcc gzip.s

But the compiler gives me

	gzip.4.s: Assembler messages:
	gzip.4.s:2007: Error: value of 326712 too large for field of 2 bytes at 6994
	...

The line 2007 looks like:

	...
	ld 6, block_start at l(6)
	...

Where the symbol block_start is defined at the end of gzip.s as

	...
	.section                .bss,"aw", at nobits
	...
         .lcomm  block_start,8           # 'block_start'
	...

Is there something wrong with my cross-compiler or is the llc-generated code bad?

Thanks, Andi



More information about the llvm-dev mailing list