Issue Details (XML | Word | Printable)

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

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

invalid assembly generated at -O: operand type mismatch for cmp

Created: 08/Feb/13 06:19 AM   Updated: 16/Feb/13 06:00 PM
Component/s: amd64 target
Affects Version/s: None
Fix Version/s: None

Environment: x86_64-linux, binutils 2.23


 Description  « Hide
$ pcc-trunk --version
pcc 1.1.0.DEVEL 20121229 for x86_64-unknown-linux-gnu
$ cat cmp.c
char a;
fn1 ()
{
    int b;
    (b = 0) <= a;
}
$ pcc-trunk -c cmp.c
$ pcc-trunk -O -c cmp.c
/tmp/ctm.Af9uCX: Assembler messages:
/tmp/ctm.Af9uCX:9: Error: operand type mismatch for `cmp'
as terminated with status 1


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson made changes - 16/Feb/13 05:59 PM
Field Original Value New Value
Assignee Anders Magnusson [ ragge ]
Anders Magnusson added a comment - 16/Feb/13 06:00 PM
Constants were erroneously emitted for right side of cmpl. Fixed now.

Anders Magnusson made changes - 16/Feb/13 06:00 PM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]