get_reg(): try to free r2 for an SValue first
commitd1694f7d7e6d96f64d1330c9b43491b613272b1e
authorThomas Preud'homme <robotux@celest.fr>
Wed, 11 Jul 2012 21:39:05 +0000 (11 23:39 +0200)
committerThomas Preud'homme <robotux@celest.fr>
Wed, 11 Jul 2012 21:39:05 +0000 (11 23:39 +0200)
tree223f41bca3974e04d5b409d7e546225fcccf0b78
parented9c6b132abab8fad614b2a077a69b86cbb95cdd
get_reg(): try to free r2 for an SValue first

To be able to load a long long value correctly on i386, gv() rely on the
fact that when get_reg() look at an SValue it tries first to free the
register in r2 and then r. More information about the context can be
found at
http://lists.nongnu.org/archive/html/tinycc-devel/2012-06/msg00017.html
and later at
http://lists.nongnu.org/archive/html/tinycc-devel/2012-07/msg00021.html
tccgen.c