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

Partially unimplemented instruction intrinsic #24

Closed
pgoodman opened this issue Apr 3, 2016 · 0 comments
Closed

Partially unimplemented instruction intrinsic #24

pgoodman opened this issue Apr 3, 2016 · 0 comments

Comments

@pgoodman
Copy link
Collaborator

pgoodman commented Apr 3, 2016

In some cases it might be valuable to have a partially (un)implemented instruction. For example, some complex FPU instructions like FPATAN have two real components:

  1. The mechanics of how the FPU stack is modified, and
  2. The actual algorithm (e.g. arctangent).

The former should be implemented in the partial instruction, as it is arch-specific and depends on no special features. The latter should be stubbed out in some way. McSema1 currently does someline like this by using LLVM intrinsics. This is probably be the most sensible approach.

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