From 9d985413ce2b60a1a8cf001913ee8dac81c03aac Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Fri, 13 Jan 2023 01:36:56 +0000 Subject: fix lots more issues, add endian conversions to ObjGenMachO, add 64-bit kludge to Switch.c --- compiler_and_linker/unsorted/Peephole.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'compiler_and_linker/unsorted/Peephole.c') diff --git a/compiler_and_linker/unsorted/Peephole.c b/compiler_and_linker/unsorted/Peephole.c index 0480c80..c9e4850 100644 --- a/compiler_and_linker/unsorted/Peephole.c +++ b/compiler_and_linker/unsorted/Peephole.c @@ -2346,7 +2346,7 @@ static void adjustforward(PCodeBlock *block) { if (PC_OP_IS_WRITE_REGISTER(op, RegClass_GPR, reg1)) flag2 = 1; - if (PC_OP_IS_REGISTER(op, RegClass_GPR, 0)) + if (PC_OP_IS_REGISTER(op, RegClass_CRFIELD, 0)) flag1 = 1; } } @@ -2389,13 +2389,13 @@ static void adjustforward(PCodeBlock *block) { break; } - if (PC_OP_IS_REGISTER(op, RegClass_GPR, 0)) + if (PC_OP_IS_REGISTER(op, RegClass_CRFIELD, 0)) flag = 1; } } } else if ( instr->op == PC_EXTSH && - (reg0 = instr->args[0].data.reg.reg) == (reg1 = instr->args[1].data.reg.reg) + (reg0 = instr->args[0].data.reg.reg) != (reg1 = instr->args[1].data.reg.reg) ) { short flag = 0; @@ -2428,7 +2428,7 @@ static void adjustforward(PCodeBlock *block) { break; } - if (PC_OP_IS_REGISTER(op, RegClass_GPR, 0)) + if (PC_OP_IS_REGISTER(op, RegClass_CRFIELD, 0)) flag = 1; } } -- cgit v1.2.3