Commit graph

1297 commits

Author SHA1 Message Date
windy
6f56cc3b00 The broken test in hash 2022-01-14 12:48:11 +01:00
windy
afa927f1bb Fix typo 2022-01-14 12:48:11 +01:00
Duncan Ogilvie
4215e43876
Merge pull request #60 from Tai7sy/deadcode-optimization-fix
Change the stack_pointer expression to relative position in `is_used`
2022-01-11 00:36:40 +01:00
windy
70bfb43944 Change the stack_pointer expression to relative position in is_used, so when detecting whether the stack accessing can be discarded (auxiliaries.cpp#L159) can get right result when meet muti-block 2022-01-10 22:39:59 +01:00
Duncan Ogilvie
36ae17d153
Merge pull request #63 from vtil-project/gh-actions
Switch to GitHub Actions
2022-01-10 22:10:23 +01:00
Duncan Ogilvie
03a63bd43a Switch to GitHub Actions 2022-01-10 22:08:42 +01:00
Duncan Ogilvie
c658914c53 Fix compilation on GCC 11.1 2022-01-10 22:08:33 +01:00
Can Bölük
bf80720098
Merge pull request #58 from abay12676/master
fix register corrupt
2021-10-30 19:30:49 +03:00
Duncan Ogilvie
6ffa73ac4a
Merge pull request #59 from Tai7sy/fix-transform-parallel
fix bug when disable PARALLEL_TRANSFORM
2021-10-13 10:59:48 +02:00
windy
4fca1ebca7 fix bug when disable PARALLEL_TRANSFORM 2021-10-10 23:10:46 +08:00
Duncan Ogilvie
05b4d14444
Merge pull request #57 from Tai7sy/test-x86
x86 optimization fix
2021-09-27 10:53:14 +02:00
Alah
1a2355cb79
fix register corrupt 2021-09-25 16:55:13 -04:00
windy
f0316a22ab Fix bit operation 2021-08-30 23:35:55 +08:00
windy
04fd7da3ac Make arch::size to signed int 2021-08-26 22:41:46 +08:00
windy
165aa6234b Fix assertions while ins stream is in disorder 2021-08-25 22:48:13 +08:00
windy
8237575ba7 Fix build 2021-08-25 22:31:22 +08:00
windy
ffaf8ca91f Add unit tests for optimization passes 2021-08-20 13:03:49 +08:00
windy
566d2a998c Fix constexpr compile error 2021-08-18 22:05:41 +08:00
windy
57fda60379 Fix all warning in x86 2021-08-17 23:24:32 +08:00
windy
4c465af036 Fix x86 optimizers, demo-tests:
```
:: After:
 | | Entry point VIP:       0x1337
 | | Stack pointer:         -0x8
 | | Already visited?:      N
 | | ------------------------
 | | 0000: [ PSEUDO ]     -0x8     movd     eax          0x1
 | | 0001: [ PSEUDO ]     -0x8     strd     $sp          -0x4         0x0
 | | 0002: [ PSEUDO ]     -0x8     strd     $sp          -0x8         0x1
 | | 0003: [ PSEUDO ]     -0x8     vpinrd   eax
 | | 0004: [ PSEUDO ]     -0x8     vexitq   0x0
```
2021-08-16 02:54:00 +08:00
Can Bölük
54dd3114b3
Merge pull request #56 from Tai7sy/test-x86
x86 supported
2021-08-11 06:33:17 +03:00
windy
17d356f87f Add x86 arch 2021-08-10 23:56:33 +08:00
windy
4432fe9e53 x86 support 2021-08-10 23:21:49 +08:00
windy
37b436a584 x86 Test OK 2021-08-08 23:16:28 +08:00
windy
7888c2e48e Fix typo 2021-08-03 20:08:15 +08:00
windy
136645748d Fix Debug library of capstone (for /INCREMENTAL) 2021-08-03 20:07:22 +08:00
windy
1004668b55 Add build docs for Visual Studio 2021-08-02 23:41:48 +08:00
windy
e79b096229 Fix build for x86 2021-08-02 20:29:03 +08:00
Can Bölük
ff94eef448
Fixing the arithmetic hinting for equals. 2021-05-29 18:32:45 +02:00
Can Bölük
3c7022f63b
Minor change to xvalues. 2021-05-29 18:30:36 +02:00
Duncan Ogilvie
25861ca20e
Merge pull request #55 from heinrich5991/pr_clang
Fix build in clang 11.1.0 by adding #include
2021-05-01 20:29:30 +02:00
heinrich5991
a9125a1120 Fix build in clang 11.1.0 by adding #include
```
[ 83%] Building CXX object VTIL-Common/CMakeFiles/VTIL-Common.dir/arch/amd64/amd64_disassembler.cpp.o
In file included from VTIL-Core/VTIL-Common/arch/amd64/amd64_disassembler.cpp:39:
In file included from VTIL-Core/VTIL-Common/arch/amd64/amd64_disassembler.hpp:47:
In file included from VTIL-Core/VTIL-Common/arch/amd64/../../io/formatting.hpp:44:
VTIL-Core/VTIL-Common/arch/amd64/../../io/strong_formatting.hpp:113:20: error: use of undeclared identifier 'pow'
                                double limit = pow( 1024.0, i );
                                               ^
```
2021-05-01 17:16:41 +02:00
Can Bölük
57c232307f
Merge pull request #54 from nullxzero/patch-1
Fix failed validation for wrong bit_count()
2021-03-18 07:28:51 +01:00
nullxzero
dd9edf6634
Fix failed validation for wrong bit_count()
For some rare targets, this assertion fails:

```cpp
cvalidate( operands[ idx ].bit_count() == 64 );
```

Can mentioned it should likely be fine if the operand is immediate, so adding this to the equation solved the problem.
2021-03-17 23:05:28 -07:00
Can Bölük
30c7a73a0d
Merge pull request #53 from pmeerw/minor
Minor fixes
2021-02-11 11:42:58 +01:00
Peter Meerwald-Stadler
74134a8f56 Use C++-style include cstdint 2021-02-10 23:20:09 +01:00
Peter Meerwald-Stadler
6e668bdd08 Fix some typos 2021-02-10 23:19:57 +01:00
Peter Meerwald-Stadler
5a28b548f5 Fix comment about cmake requirement 2021-02-10 23:19:48 +01:00
Can Bölük
7e741095ab
Fixing a bug with calling conventions. 2020-12-06 18:29:37 +01:00
Can Bölük
eeffb26b8b
Merge pull request #51 from mrexodia/register_desc
Add implicit conversion from enum in register_desc
2020-11-16 21:24:56 +01:00
Can Bölük
98995a6130
Minor fix for hex. 2020-11-16 21:22:10 +01:00
Duncan Ogilvie
13b2115c6f Fix issue with capstone dependency 2020-11-16 03:55:30 +01:00
Duncan Ogilvie
9c56d906fd Add implicit conversion from enum in register_desc 2020-11-16 03:22:49 +01:00
Can Bölük
d51b7d7426
Merge pull request #50 from MoePus/master
support operator umultiply and multiply
2020-11-06 15:26:46 +01:00
Can Bölük
32e5e2d9bc
Merge pull request #49 from mrexodia/keystone-llvm
Improve the project setup to link with LLVM
2020-11-03 20:00:29 +01:00
Duncan Ogilvie
24a8ade114 Show colors on AppVeyor 2020-11-03 17:56:47 +01:00
Duncan Ogilvie
1c3c0ad255 Compile on Ubuntu 2020-11-03 16:40:11 +01:00
moepus
9cc1a5cc25 support operator umultiply and multiply 2020-11-03 15:23:28 +08:00
Duncan Ogilvie
2296553ba0 Add source group for VTIL-Tests 2020-11-03 01:06:23 +01:00
Duncan Ogilvie
d8d42f727e Further improvements to keystone 2020-11-03 00:56:00 +01:00