Skip to content

Fix the Linux/MIPS target#368

Merged
davidgiven merged 1 commit into
davidgiven:defaultfrom
johnsonjh:johnsonjh/20260716/mips
Jul 16, 2026
Merged

Fix the Linux/MIPS target#368
davidgiven merged 1 commit into
davidgiven:defaultfrom
johnsonjh:johnsonjh/20260716/mips

Conversation

@johnsonjh

@johnsonjh johnsonjh commented Jul 16, 2026

Copy link
Copy Markdown
Contributor
  1. Swap needed to handle reg/stack and stack/reg
  2. After swapping, rewrite sources and not dests, the old code was incorrect for cycles >2.
  3. Fixed data labels for correct word alignment.
  4. simple_test_neg used incorrect bitwise nor.

I can't say it's perfect, but it builds https://gitlab.com/dps8m/crc.git correctly and the full CRC test suite (make test) now passes.

Closes #367

1. Swap needs to handle reg/stack and stack/reg
2. After swap, rewrite sources and not dests,
   the old code was incorrect of cycles >2.
3. Fix data labels for correct word alignment.
4. simple_test_neg used incorrect bitwise nor.

I can't say it's perfect, but it now builds
https://gitlab.com/dps8m/crc.git correctly and
the full CRC test suite (make test) now passes.

Signed-off-by: Jeffrey H. Johnson <johnsonjh.dev@gmail.com>
@johnsonjh johnsonjh changed the title Fix the Linux/MIPS backend Fix the Linux/MIPS target Jul 16, 2026
@davidgiven

Copy link
Copy Markdown
Owner

Nice, thanks --- mcg is in pretty poor shape and I have a long-term project to rewrite it.

@davidgiven
davidgiven merged commit c2d2388 into davidgiven:default Jul 16, 2026
1 of 3 checks passed
@johnsonjh
johnsonjh deleted the johnsonjh/20260716/mips branch July 16, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linux/MIPS backend is broken

2 participants