summaryrefslogtreecommitdiff
path: root/compiler_and_linker
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-01-14 19:11:33 +0000
committerAsh Wolf <ninji@wuffs.org>2023-01-14 19:11:33 +0000
commit8078e7f897aaae9b492b22475060052d68b9c547 (patch)
treed35f285a2534a35ab336040b861310157d8842fb /compiler_and_linker
parentc12644aae1c43ff660b9ebd97eb75751536a565a (diff)
downloadMWCC-8078e7f897aaae9b492b22475060052d68b9c547.tar.gz
MWCC-8078e7f897aaae9b492b22475060052d68b9c547.zip
compiler can now recompile itself
Diffstat (limited to 'compiler_and_linker')
-rw-r--r--compiler_and_linker/unsorted/Switch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler_and_linker/unsorted/Switch.c b/compiler_and_linker/unsorted/Switch.c
index e0c99a0..23cc02b 100644
--- a/compiler_and_linker/unsorted/Switch.c
+++ b/compiler_and_linker/unsorted/Switch.c
@@ -297,7 +297,7 @@ static void I8_treecompare(SInt32 start, SInt32 end) {
d = b;
}
emitpcode(PC_SUBFC, a, a, selector_gpr);
- emitpcode(PC_SUBFE, b, d, b);
+ emitpcode(PC_SUBFE, b, d, c);
emitpcode(PC_SUBFE, b, a, a);
emitpcode(PC_NEG, b, b);
emitpcode(PC_CMPI, 0, b, 0);