[hackers] [scc] [cc2-qbe] Fix emitconst || Roberto E. Vargas Caballero
commit 7126c00995fd0c06ec41adf03c37881b4ac01ba6
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Apr 7 21:11:49 2017 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Apr 7 21:13:58 2017 +0200
[cc2-qbe] Fix emitconst
The mask for 8 byte constants was wrong. Thank mpu!
diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c
index f05b09f..6ff08a0 100644
--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
_AT_@ -219,7 +219,7 @@ emitconst(Node *np)
printf("%ld", (long) np->u.i & 0xFFFFFFFF);
break;
case 8:
- printf("%lld", (long long) np->u.i & 0xFFFFFFFF);
+ printf("%lld", (long long) np->u.i);
break;
default:
abort();
Received on Fri Apr 07 2017 - 21:14:18 CEST
This archive was generated by hypermail 2.3.0
: Fri Apr 07 2017 - 21:24:16 CEST