<< Back to previous view

[PCC-415] invalid assembly generated at -O: operand type mismatch for cmp Created: 08/Feb/13  Updated: 16/Feb/13

Status: Resolved
Project: pcc
Component/s: amd64 target
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Dara Hazeghi Assignee: Anders Magnusson
Resolution: Fixed Votes: 0
Environment: x86_64-linux, binutils 2.23


 Description   
$ 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


 Comments   
Comment by Anders Magnusson [ 16/Feb/13 06:00 PM ]
Constants were erroneously emitted for right side of cmpl. Fixed now.
Generated at Thu Jul 10 17:47:55 CEST 2014 using JIRA Enterprise Edition, Version: 3.13.1-#333.