Move logic for if (int value) to tccgen.c
commiteda2c756edc4dca004ba217d5bf361235dd9de1f
authorThomas Preud'homme <robotux@celest.fr>
Tue, 31 Dec 2013 15:51:20 +0000 (31 23:51 +0800)
committerThomas Preud'homme <robotux@celest.fr>
Sat, 4 Jan 2014 13:10:05 +0000 (4 21:10 +0800)
tree9370d81f4a5a3c18dc12e76b77c8db133af33032
parentc634c797c5211a044bc76c4419abef7872a98918
Move logic for if (int value) to tccgen.c

Move the logic to do a test of an integer value (ex if (0)) out of
arch-specific code to tccgen.c to avoid code duplication. This also
fixes test of long long value which was only testing the bottom half of
such values on 32 bits architectures.
arm-gen.c
c67-gen.c
i386-gen.c
il-gen.c
tccgen.c
x86_64-gen.c