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

Stack permutation inefficiency #123

Open
mskvortsov opened this issue Apr 14, 2020 · 0 comments
Open

Stack permutation inefficiency #123

mskvortsov opened this issue Apr 14, 2020 · 0 comments

Comments

@mskvortsov
Copy link
Collaborator

void foo(int, int, int, int, int, int, int, int,
         int, int, int, int, int, int, int, int,
         int);
void puxc2(int vf, int ve, int vd, int vc, int vb, int va, int v9, int v8,
           int v7, int v6, int v5, int v4, int v3, int v2, int v1, int v0) {
  foo(vf, ve, vd, vc, vb, va, v1, v0, v7, v6, v5, v4, v3, v2, v7, v8, v9);
}

  ROLL  15
  ROLL  15
  ROLL  15
  ROLL  15
  ROLL  15
  ROLL  15
  ROLL  7
  ROLL  7
  ROLL  13
  ROLL  13
  ROLL  13
  ROLL  13
  ROLL  13
  ROLL  13
  PUSH  s5
  ROLL  15
  ROLL  16
  CALL  $foo$

Wanted:

PUXC2 s7, s8, s9
CALL $foo$
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