diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-01-13 01:36:56 +0000 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-01-13 01:36:56 +0000 |
commit | 9d985413ce2b60a1a8cf001913ee8dac81c03aac (patch) | |
tree | 348ab31884f2dd89d285e06c42e656e35835ff38 /compiler_and_linker/unsorted/LoopDetection.c | |
parent | 3a6db389b250439a0cce6b45ef1424a5728f5d18 (diff) | |
download | MWCC-9d985413ce2b60a1a8cf001913ee8dac81c03aac.tar.gz MWCC-9d985413ce2b60a1a8cf001913ee8dac81c03aac.zip |
fix lots more issues, add endian conversions to ObjGenMachO, add 64-bit kludge to Switch.c
Diffstat (limited to 'compiler_and_linker/unsorted/LoopDetection.c')
-rw-r--r-- | compiler_and_linker/unsorted/LoopDetection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler_and_linker/unsorted/LoopDetection.c b/compiler_and_linker/unsorted/LoopDetection.c index 1d8244a..f1513e0 100644 --- a/compiler_and_linker/unsorted/LoopDetection.c +++ b/compiler_and_linker/unsorted/LoopDetection.c @@ -592,7 +592,7 @@ static void checkcountingloop(Loop *loop) { return; if (op12 != PC_CMP && op12 != PC_CMPL && op12 != PC_CMPI && op12 != PC_CMPLI) return; - if (prevpcode->args[1].data.reg.reg == pc8->args[0].data.reg.reg) + if (prevpcode->args[1].data.reg.reg != pc8->args[0].data.reg.reg) return; if ((loop->step = pc8->args[2].data.imm.value) == 0) return; |