| Summary: | (daa) vex x86->IR: unhandled instruction bytes: 0x27 0x66 0x89 0x45 | ||
|---|---|---|---|
| Product: | [Developer tools] valgrind | Reporter: | Sergei Trofimovich <slyich> |
| Component: | vex | Assignee: | Julian Seward <jseward> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | ||
| Priority: | NOR | ||
| Version First Reported In: | 3.2.3 | ||
| Target Milestone: | --- | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
C source for testing DAA instruction
Contains test for DAA, DAS, AAA, AAS insns |
||
|
Description
Sergei Trofimovich
2007-11-18 11:25:03 UTC
> instructions on real processor. Some of binaries contain
> old instructions: DAA, DAS, etc.
Write a program which tests DAA, DAS, etc, with all possible input
values, so as to demonstrate correct behaviour of the instructions,
and send it. That will make it much easier for me to implement
the instructions.
Created attachment 22105 [details]
C source for testing DAA instruction
Small program loops around all significant values of
AX: 0..0xFF; and EFLAGS: SF ZF AF PF CF
(according to intel specs).
Same tests can be ran for AAS, AAD, DAS. * Should I attach 3 more files or write one test for all insns? * Does this test look good or I've chosen wrong way? > * Should I attach 3 more files or write one test for all insns? One test for all 4 insns. > * Does this test look good or I've chosen wrong way? Yes, looks good. I just need to implement them now. Thanks. Created attachment 22112 [details]
Contains test for DAA, DAS, AAA, AAS insns
New testcase, beware :)
On my p4-3.0GHz:
$ time { ./wr_sig > bcd_dump; }
real 0m8.269s
user 0m5.068s
sys 0m2.654s
Generates 320 MB log
Fixed (vex r1800). Please verify. Is it OK to include a simplified version of your test program in the Valgrind test suite? > Fixed (vex r1800). Please verify. (after i've left only AF and CF) $ diff -uN orig_log vg_log | wc -l 0 Great. Seems to work! >Is it OK to include a simplified version of your test program in the >Valgrind test suite? Sure. Thanks! |