-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
bugSomething isn't workingSomething isn't working
Description
As return values and arguments share the same register (r0), attempting to make a call to another function where the return value is in another position other than the first one causes that argument to get corrupted.
For example:
%call function @foo, @ret will first clobber @ret (aka r0) with @foo, then attempt to put the clobbered value of r0 into r1.
Instead, %call should push the arguments to the stack and then pop them into registers. This is far less efficient, but we're not worried about efficiency in this stage.
This could potentially simplify some argument handling in bootstrap4/compiler0 as well.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working