aboutsummaryrefslogtreecommitdiff
path: root/i386-gen.c
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2013-06-14 16:18:16 +0200
committerThomas Preud'homme <robotux@celest.fr>2013-06-14 16:19:51 +0200
commitf6b50558fc46aeb8e981355009871b30e61de841 (patch)
treef0abfaeb0b015c1e33fed103c7279abaf7d22ec5 /i386-gen.c
parent807dc7c8de2dcb0365c15b9c2a43ad0c195513dd (diff)
downloadtinycc-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 'i386-gen.c')
-rw-r--r--i386-gen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/i386-gen.c b/i386-gen.c
index 2a4007c..844a482 100644
--- a/i386-gen.c
+++ b/i386-gen.c
@@ -244,7 +244,7 @@ ST_FUNC void load(int r, SValue *sv)
} else if ((ft & VT_BTYPE) == VT_LDOUBLE) {
o(0xdb); /* fldt */
r = 5;
- } else if ((ft & VT_TYPE) == VT_BYTE) {
+ } else if ((ft & VT_TYPE) == VT_BYTE || (ft & VT_TYPE) == VT_BOOL) {
o(0xbe0f); /* movsbl */
} else if ((ft & VT_TYPE) == (VT_BYTE | VT_UNSIGNED)) {
o(0xb60f); /* movzbl */