Comments (4)
This is probably the cause:
remill/lib/Arch/X86/Semantics/BINARY.cpp
Lines 246 to 256 in 269e61a
from remill.
Adding some context to Peter's comments: According to the Intel Processor Manual (https://cdrdv2.intel.com/v1/dl/getContent/671110), for IMUL:
The SF, ZF, AF, and PF flags are undefined.
(Page 3-503)
Where this becomes confusing is that operations that happen on real, physical CPUs for undefined flags sometimes feel very much defined in practice. The problem is that since these flags are officially undefined and documented as being undefined, the observed behavior is inconsistent across generations of CPU and CPUs from different manufacturers (e.g., AMD).
from remill.
We should really have a one-argument form of __remill_undefined_8
that takes in a concrete value.
from remill.
It looks like with the P4 core, IMUL started preserving some of the flags: https://www.sandpile.org/x86/flags.htm
from remill.
Related Issues (20)
- Failing `MOVr16r16_2` test on Ubuntu 22.04
- Remill does not recognize `adcs` HOT 1
- Test error with XED v2023.04.16 HOT 3
- UB when sdiv overflows HOT 5
- 'nsw' in smaddl leads to poison
- Designated initializations in C++ files HOT 5
- C++ header file not found HOT 9
- wchar_size HOT 1
- Global Variable __remill_state on Windows HOT 7
- build failure on mac m1
- Why don't many branches, consider merging branches?
- Remill-lift slice does not allocate a state with the appropriate type due to opaque pointers
- Unnecessary SPARC g0 override
- cmake fail HOT 1
- LiftCBranch does not set BRANCH_TAKEN
- Does it support all instruction sets? HOT 1
- Question about plans for remill and ghidra pcode HOT 3
- memory alignment issues HOT 6
- remill build failure with freestanding mode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from remill.