Issue Details (XML | Word | Printable)

Key: PCC-100
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Anders Magnusson
Reporter: Dara Hazeghi
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

pcc emits invalid asm on x86_64-linux

Created: 30/Oct/09 09:06 AM   Updated: 30/Oct/09 06:05 PM
Component/s: i386 target
Affects Version/s: None
Fix Version/s: None

Environment: x86_64-linux-gnu, Ubuntu 9.10

 Description  « Hide
Using pcc without optimizations on nbench, I've found the following testcase for which pcc emits invalid assembly code.

/tmp/ctm.XElVAd: Assembler messages:
/tmp/ctm.XElVAd:14: Error: suffix or operands invalid for `mov'

typedef struct {
        double d;
        unsigned short s;
} bar;

void foo(bar *a)
  a->d = a->s;

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson added a comment - 30/Oct/09 04:35 PM
Fixed now. Had to ensure that the correct register were given.

Dara Hazeghi added a comment - 30/Oct/09 06:05 PM
Confirmed fixed, thanks! nbench now builds successfully with and without optimizations.