Toru Nishimura
2012-04-20 11:44:19 UTC
Hi, pcc-list,
I realized powerpc-pcc emits incorrect insn which gas refuses to accept.
$ pcc -c bogus.c
/tmp/ctm.18892a: Assembler messages:
/tmp/ctm.18892a:17: Error: operand out of range (0xffffffff is not between 0x00000000 and 0x0000ffff)
The line is;
cmplwi %r2,-1
The "cmplwi" instruction only takes zero-extened 16bit imm value and not
possible to have -1 in the imm operand. How can I fix the error? The pcc
version is 1.0.0 provided as one of precompiled NetBSD pkgsrc.
Toru Nishimura / ALKYL Technology
I realized powerpc-pcc emits incorrect insn which gas refuses to accept.
$ pcc -c bogus.c
/tmp/ctm.18892a: Assembler messages:
/tmp/ctm.18892a:17: Error: operand out of range (0xffffffff is not between 0x00000000 and 0x0000ffff)
The line is;
cmplwi %r2,-1
The "cmplwi" instruction only takes zero-extened 16bit imm value and not
possible to have -1 in the imm operand. How can I fix the error? The pcc
version is 1.0.0 provided as one of precompiled NetBSD pkgsrc.
Toru Nishimura / ALKYL Technology