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

add shld semantics #430

Merged
merged 1 commit into from
Dec 25, 2016
Merged

add shld semantics #430

merged 1 commit into from
Dec 25, 2016

Conversation

gyorokpeter
Copy link
Contributor

Also includes some fixes for mingw build.

Copy link
Owner

@JonathanSalwan JonathanSalwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! If you can provide a PR on my dev-semantics branch instead of the master one it will be nice. Then if you can provide the PR only for CMakeLists.txt, x86Semantics.cpp and x86Semantics.hpp, I will really appreciate =).

Thanks for this contribution!

@@ -14,6 +14,8 @@
#include <python2.7/Python.h>
#include <python2.7/longintrepr.h>
#elif _WIN32
#include <cmath>
#define _hypot hypot
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this include and define?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mingw is giving errors in python.h if I leave these out. I figured out that I need both of these lines to avoid the error (otherwise it complains about either missing hypot or _hypot).

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. Can you open a new issue for this mingw error and do a PR with theae both lines?

@@ -0,0 +1,166 @@

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks to provided tests but i'm using this file for my semantics tests and also the qemu-test-x86_64.

@@ -10481,6 +10483,85 @@ namespace triton {
this->controlFlow_s(inst);
}

void x86Semantics::shld_s(triton::arch::Instruction& inst) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this function. The semantics is good and all my tests were successfully executed =). The coding style is not like others functions but it's not a big deal I will modify the coding style later.

@JonathanSalwan
Copy link
Owner

Merged with fix

@JonathanSalwan
Copy link
Owner

I also pushed shrd to close #413.

@gyorokpeter gyorokpeter deleted the shld-semantics branch December 26, 2016 08:30
@gyorokpeter gyorokpeter restored the shld-semantics branch January 5, 2017 07:23
@gyorokpeter gyorokpeter deleted the shld-semantics branch January 5, 2017 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants