Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increment/Decrement are implemented incorrectly #140

Open
d-tatianin opened this issue Nov 10, 2023 · 0 comments
Open

Increment/Decrement are implemented incorrectly #140

d-tatianin opened this issue Nov 10, 2023 · 0 comments

Comments

@d-tatianin
Copy link

I've already opened a similar issue in ACPICA: acpica/acpica#908
I think LAI is mimicking ACPICA here, but that is not correct behavior.
The operand of IncrementOp is a SuperName therefore it can be a result of RefOf.

Simple reproducer code:

DefinitionBlock ("", "SSDT", 1, "uTTEST", "TESTTABL", 0xF0F0F0F0)
{
    Scope (_SB) {
        Method (TEST, 1) {
            Arg0++
        }

        Method (_INI, 0, NotSerialized)
        {
            Local0 = 1
            TEST(RefOf(Local0))
        }
    }
}

This dies on LAI_ENSURE(result.type == LAI_INTEGER)

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

No branches or pull requests

1 participant