Skip to content

Make gcc register allocation still more flexible - #303

Closed
NicoHood wants to merge 1 commit into
FastLED:masterfrom
NicoHood:patch-2
Closed

NicoHood wants to merge 1 commit into
FastLED:masterfrom
NicoHood:patch-2

Conversation

@NicoHood

@NicoHood NicoHood commented May 5, 2016 •

Copy link
Copy Markdown
Contributor

Regarding a5e92af and #302

Looking at the datasheet says:
mul: 0 <= d <= 31, 0 <= r <= 31
mov: 0 <= d <= 31, 0 <= r <= 31
eor: 0 <= d <= 31
swap: 0 <= d <= 31
andi: 16 <= d <= 31, 0 <= K <= 255
or: 0 <= d <= 31, 0 <= r <= 31

This means only mx and xr1 should be a "d", the other can be "r". This makes compilation still flexible but should fix the bug too.
I tested this and my assumption is correct.

Regarding  a5e92af

Looking at the datasheet says:
mul: 0 <= d <= 31, 0 <= r <= 31
mov: 0 <= d <= 31, 0 <= r <= 31
eor: 0 <= d <= 31
swap: 0 <= d <= 31
andi: 16 <= d <= 31, 0 <= K <= 255
or: 0 <= d <= 31, 0 <= r <= 31

This means only mx and xr1 should be a "d", the other can be "r". This makes compilation still flexible but should fix the bug too.
I tested this and my assumption is correct.
@focalintent

Copy link
Copy Markdown
Contributor

Not taking this one - it's mostly moot because I'm in the process of completely re-writing this code to accommodate future library changes.

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.

2 participants