-
Notifications
You must be signed in to change notification settings - Fork 530
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
add shld semantics #430
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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 @@ | |||
|
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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.
Merged with fix |
I also pushed |
Also includes some fixes for mingw build.