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

$ 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

Comment by Anders Magnusson [ 16/Feb/13 06:00 PM ]
Constants were erroneously emitted for right side of cmpl. Fixed now.
Generated at Wed Oct 18 16:54:08 CEST 2017 using JIRA Enterprise Edition, Version: 3.13.1-#333.