mirror of https://git.wuffs.org/MWCC
fix more matching bugs
This commit is contained in:
parent
86a48bfea1
commit
c12644aae1
|
@ -122,6 +122,7 @@ Statement *IRO_Optimizer(Object *func, Statement *statements) {
|
|||
CError_ASSERT(234, stIsSetup);
|
||||
|
||||
#ifdef CW_PATCH_DEBUG
|
||||
if (copts.debuglisting)
|
||||
IRO_Log = 1;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -296,6 +296,7 @@ void IRO_DumpBits(char *name, BitVector *bv) {
|
|||
|
||||
void IRO_DumpAfterPhase(char *str, Boolean flag) {
|
||||
#ifdef CW_PATCH_DEBUG
|
||||
if (copts.debuglisting)
|
||||
flag = 1;
|
||||
#endif
|
||||
if (flag) {
|
||||
|
|
|
@ -610,9 +610,11 @@ void ObjGen_DeclareFloatConst(Object *object) {
|
|||
gl = MachO_GetGList(Sections[sectionID]);
|
||||
if (object->type->size == 4) {
|
||||
float f = object->u.data.u.floatconst->value;
|
||||
CTool_EndianConvertMem(&f, 4);
|
||||
AppendGListData(gl, &f, 4);
|
||||
} else if (object->type->size == 8) {
|
||||
double f = object->u.data.u.floatconst->value;
|
||||
CTool_EndianConvertMem(&f, 8);
|
||||
AppendGListData(gl, &f, 8);
|
||||
} else {
|
||||
CError_FATAL(998);
|
||||
|
|
|
@ -115,8 +115,8 @@ static void pclistblock(PCodeBlock *block, char *format, UInt32 vecSize) {
|
|||
|
||||
fprintf(
|
||||
pcfile,
|
||||
" %.8" PRIx32 " %.8" PRIx32 " %4" PRId32 " %-7s%c %s\n",
|
||||
offset, opcode, latency,
|
||||
" %.8" PRIX32 " %.8" PRIX32 " %4" PRId32 " %-7s%c %s\n",
|
||||
offset, CTool_EndianConvertWord32(opcode), latency,
|
||||
opcodeinfo[instr->op].name, chr, buf
|
||||
);
|
||||
|
||||
|
|
|
@ -2379,7 +2379,7 @@ static void adjustforward(PCodeBlock *block) {
|
|||
}
|
||||
}
|
||||
|
||||
for (op = instr->args, i = instr->argCount; i--; op++) {
|
||||
for (op = scan->args, i = scan->argCount; i--; op++) {
|
||||
if (
|
||||
PC_OP_IS_WRITE_ANY_REGISTER(op, RegClass_GPR) &&
|
||||
(op->data.reg.reg == reg0 || op->data.reg.reg == reg1)
|
||||
|
@ -2418,7 +2418,7 @@ static void adjustforward(PCodeBlock *block) {
|
|||
}
|
||||
}
|
||||
|
||||
for (op = instr->args, i = instr->argCount; i--; op++) {
|
||||
for (op = scan->args, i = scan->argCount; i--; op++) {
|
||||
if (
|
||||
PC_OP_IS_WRITE_ANY_REGISTER(op, RegClass_GPR) &&
|
||||
(op->data.reg.reg == reg0 || op->data.reg.reg == reg1)
|
||||
|
|
Loading…
Reference in New Issue