Skip to content

Why does call modify x6 ? #228

@Bobb56

Description

@Bobb56

The pseudo instruction call modifies x6 as it's defined in pseudoops.txt
But it is not supposed to do it.
Call must be replaced by :
auipc x1,PCH1 ;jalr x1, x1, PCL1
And not :
auipc x6,PCH1 ;jalr x1, x6, PCL1

The pseudo op tail has to modify x6 because it should preserve the value of ra, but not call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions