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.
This commit is contained in:
Thomas Preud'homme
2013-06-14 16:18:16 +02:00
parent 807dc7c8de
commit f6b50558fc
3 changed files with 4 additions and 4 deletions

View File

@ -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));
}