Inokentiy Babushkin
10827a6f32
Reduced confusion caused by the m68k test being out of date
...
* added a new case branch to account for floating point operands.
2016-05-13 09:08:36 +02:00
Inokentiy Babushkin
47610f1aaf
Fixed trivial (all) compiler warnings
...
Some enumeration compares were using the wrong (but in this case
harmless) enumeration in the test suite. Replaced to make the compiler
happy.
2016-05-08 23:25:58 +02:00
Ruslan Kabatsayev
80003bb4ff
Remove never used cs_x86_op::fp
2016-04-23 14:45:24 +03:00
Daniel Collin
d994c74b02
[M68K] Added basic groups
...
Added support for basic groups in the M68K backend. Also did some minor cleanups/whitespace fixes while at it.
Relates to this issue https://github.com/aquynh/capstone/issues/494
2016-04-10 10:55:21 +02:00
Nguyen Anh Quynh
9031b17fe0
arm64: indentation
2016-01-22 22:37:59 +08:00
Pranith Kumar
653827bf5a
Add register access info for ARM64
...
Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
2016-01-06 15:54:10 -05:00
Nicolas PLANEL
fa1ad4ca9d
[tests] test_m68k.c fixup some minors output glitch
...
Minors glitch fixup and/or output consmetics.
2015-10-06 16:10:22 +11:00
Nicolas PLANEL
ce68098765
[tests] avoid overlap i variable namespace
...
Avoir overlaping of i variable name as already use as platform index.
2015-10-06 15:00:45 +11:00
Nguyen Anh Quynh
b16658d39e
m68k: add M68K code to test_basic.c & test_detail.c
2015-10-04 15:05:26 +08:00
Daniel Collin
cd206ff508
Made test_m68k a bit more verbose
2015-10-03 09:58:27 +02:00
Daniel Collin
2ee675c10a
This adds M68K support to Capstone
2015-10-02 20:47:00 +02:00
bughoho
cf7627d623
delete old code
2015-09-30 11:10:14 +08:00
bughoho
edd7659756
https://github.com/aquynh/capstone/issues/483
2015-09-30 11:09:52 +08:00
Nguyen Anh Quynh
62918abb60
support new syntax CS_OPT_SYNTAX_MASM for X86
2015-08-09 10:34:19 -07:00
Nguyen Anh Quynh
a973ef618e
tests: commit the Makefile forgotten in the last commit
2015-08-09 09:48:45 -07:00
Nguyen Anh Quynh
20037df9dd
tests: properly define HAS_XXX marcros so some tests work
2015-08-09 09:47:53 -07:00
Nguyen Anh Quynh
960aba476c
tests: fix some warnings for unused variables in test_skipdata.c
2015-07-31 09:27:03 +08:00
Taras Tsugrii
63fbf8e560
Include tests only for supported architectures.
...
Capstone conveniently provides options to enable/disable specific architectures
which is very useful for trimming the size of the binary, but those options are
ignored in some tests, so when say X86 architecture is not included, some tests
would fail.
This change conditionally includes tests only for supported architectures.
2015-07-30 13:01:25 -07:00
Nguyen Anh Quynh
7bb3508ccb
suite: move fuzz_hardness.c to suite/fuzz/
2015-06-16 17:37:48 +08:00
Felix Grobert
cdd677f3f4
Add debug build target and fuzz testing harness.
2015-06-16 17:35:23 +08:00
Nguyen Anh Quynh
968ec56c93
tests: remove orphan binaries due to renaming of test.c to test_basic.c
2015-06-06 12:22:39 +08:00
Yegor Derevenets
50c352c9d6
Make tests fail loudly
2015-05-31 09:01:38 +02:00
Yegor Derevenets
2c073468d8
Added test build target, fixed CMake warning
...
https://github.com/aquynh/capstone/issues/376
2015-05-31 09:01:38 +02:00
Gabriel Corona
8102aacfda
Make PowerPC imm 64 bit (instad 32 bit)
2015-05-14 23:16:55 +02:00
Nguyen Anh Quynh
627b901f36
tests: add info of test_customized_mnem.c to README
2015-04-27 11:10:26 +08:00
Nguyen Anh Quynh
c0b1de3c61
tests: simplify test_customized_mnem.c a little bit
2015-04-26 23:15:08 +08:00
Nguyen Anh Quynh
0b96545f66
new option CS_OPT_MNEMONIC to customize instruction mnemonic
2015-04-26 22:54:41 +08:00
Nguyen Anh Quynh
29f777bdd9
arm: support cs_regs_access() API
2015-04-07 11:59:26 +08:00
Cr4sh
19ee2d10b3
inttypes.h fix
2015-03-29 21:16:38 +08:00
Nguyen Anh Quynh
3a99bc6977
tests: fix an warning on big left shifting. issue reported by Coverity
2015-03-27 00:51:47 +08:00
Nguyen Anh Quynh
efffe787d1
Add new API and start to provide access information for instruction operands
...
- New API cs_regs_access() that provide registers being read & modified by instruction
- New field cs_x86_op.access provides access info (READ, WRITE) for each operand
- New field cs_x86.eflags provides EFLAGS affected by instruction
- Extend cs_detail.{regs_read, regs_write} from uint8_t to uint16_t type
2015-03-25 15:02:13 +08:00
Nguyen Anh Quynh
b8ffb86b02
ppc: fix a bug in QPX mode & add some QPX alias instructions.
2015-03-12 16:52:31 +08:00
Nguyen Anh Quynh
a81bf4247c
x86: add new field @xop_cc to struct @cs_x86
2015-03-07 13:37:32 +08:00
pancake
9c10ace558
Make pkg-config and source consistent with installation
2015-02-24 05:03:04 +01:00
Nguyen Anh Quynh
6c34c6659b
tests: update test_arm.c to add a sample reflecting the addition of lshift field on arm_op_mem
2015-01-12 15:38:06 +08:00
Nguyen Anh Quynh
faa925ab8f
fix bindings (python/java) and tests after the last change on the type of imm of cs_arm64_op
2014-11-17 11:39:36 +08:00
Nguyen Anh Quynh
84df600944
tests: update Mips modes to CS_MODE_MIPS32 & CS_MODE_MIPS64
2014-11-13 11:27:51 +08:00
Nguyen Anh Quynh
0d97a3b3aa
mips: CS_MODE_MIPS32R6 is an independent mode, and should not combine with CS_MODE_32
2014-11-13 11:12:52 +08:00
Nguyen Anh Quynh
8cdafda551
arm: add new field mem_barrier to cs_arm struct. this requires changes in bindings
2014-11-11 22:30:30 +08:00
Nguyen Anh Quynh
83466d4277
test: add sample code for ARM's CS_MODE_MCLASS & CS_MODE_V8
2014-11-11 21:44:42 +08:00
Nguyen Anh Quynh
248519efea
mips: properly handle Mips32R6 mode. bug reported by Jay Oster
2014-11-09 14:07:07 +08:00
Nguyen Anh Quynh
2f5081c1f9
tests: remove broken test on Mips's Micro mode
2014-10-29 22:36:11 +08:00
Nguyen Anh Quynh
5720cb7ae1
tests: add tests for mips's modes: MIPS32R6 & MICRO (C & Python code)
2014-10-29 22:35:02 +08:00
kratolp
5c0d9a4ade
Add '4*cri+cond' to operand list
2014-10-17 14:52:03 +02:00
Nguyen Anh Quynh
f0acace803
Merge branch 'newapi' of https://github.com/aquynh/capstone into next
2014-10-12 10:30:57 +08:00
Nguyen Anh Quynh
7170cb2ea2
tests: add some comments for test_iter.c
2014-10-11 10:43:27 +08:00
Nguyen Anh Quynh
2d752f9e4e
tests: add introductions for test_skipdata.c & test_iter.c to README
2014-10-11 01:33:32 +08:00
Nguyen Anh Quynh
0a2eca7c6c
modify API cs_disasm_iter() and add new API cs_malloc(). also adds sample code test_iter.c
2014-10-11 00:36:16 +08:00
Nguyen Anh Quynh
8fb2eab459
arm: some operands can get subtracted from base register, thus have '-' sign associated. this adds subtracted field into cs_arm_op to provide this info. issue reported by Yegor Derevenets
2014-10-06 20:27:25 +08:00
Nguyen Anh Quynh
910a4df9a3
tests: compile without -O3 flag. this is to make it easier to maintain FreeBSD package
2014-10-02 15:49:53 +08:00