diff options
| author | Thomas Preud'homme <robotux@celest.fr> | 2013-06-14 16:18:16 +0200 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2013-06-14 16:19:51 +0200 |
| commit | f6b50558fc46aeb8e981355009871b30e61de841 (patch) | |
| tree | f0abfaeb0b015c1e33fed103c7279abaf7d22ec5 /arm-gen.c | |
| parent | 807dc7c8de2dcb0365c15b9c2a43ad0c195513dd (diff) | |
| download | tinycc-f6b50558fc46aeb8e981355009871b30e61de841.tar.gz tinycc-f6b50558fc46aeb8e981355009871b30e61de841.tar.bz2 | |
Add support for load/store of _Bool value
Add support for loading _Bool value in i386, x86_64 and arm as well as
support for storing _Bool value on arm.
Diffstat (limited to 'arm-gen.c')
| -rw-r--r-- | arm-gen.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -571,7 +571,7 @@ void load(int r, SValue *sv) op=0xE5100000; if(!sign) op|=0x800000; - if ((ft & VT_BTYPE) == VT_BYTE) + if ((ft & VT_BTYPE) == VT_BYTE || (ft & VT_BTYPE) == VT_BOOL) op|=0x400000; o(op|(intr(r)<<12)|fc|(base<<16)); } @@ -699,7 +699,7 @@ void store(int r, SValue *sv) op=0xE5000000; if(!sign) op|=0x800000; - if ((ft & VT_BTYPE) == VT_BYTE) + if ((ft & VT_BTYPE) == VT_BYTE || (ft & VT_BTYPE) == VT_BOOL) op|=0x400000; o(op|(intr(r)<<12)|fc|(base<<16)); } |
