[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pcc-list
Subject:    Re: [pcc-list] pcc-101014 code generation error on GNU/Linux AMD64
From:       Anders Magnusson <ragge () ludd ! ltu ! se>
Date:       2010-10-16 9:32:24
Message-ID: 4CB97128.8090507 () ludd ! ltu ! se
[Download RAW message or body]

Hi,

On 10/14/2010 04:23 PM, Nelson H. F. Beebe wrote:
> Yesterday, I built the pcc-101014 release on GNU/Linux AMD64 and IA-32
> platforms, and then tested it on my large math library.
>
> There are numerous compilation failures, reported like this:
>
> /tmp/ctm.P1zke9: Assembler messages:
> /tmp/ctm.P1zke9:2067: Error: junk `(%rip)+8' after expression
>
> I generated assembly code for one of the source code files,
> and found the problem:
>
> 	movsd .L790(%rip),%xmm0
> 	movq -128(%rbp),%rax
> 	movsd %xmm0,(%rax)
> 	movsd .L790(%rip)+8,%xmm0
>    
Gas don't accept .L790(%rip)+8  but accepts 8+.L790(%rip), so I
changed the printout order.

Thanks for reporting this.

-- Ragge

> The assembler accepts the first of those four lines, but chokes on
> all instances where (%rip) is followed by a plus and an integer
> constant.
>
> -------------------------------------------------------------------------------
> - Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
> - University of Utah                    FAX: +1 801 581 4148                  -
> - Department of Mathematics, 110 LCB    Internet e-mail: beebe@math.utah.edu  -
> - 155 S 1400 E RM 233                       beebe@acm.org  beebe@computer.org -
> - Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe/ -
> -------------------------------------------------------------------------------
>
>    

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic