Skip to content

Remove ported instruction tests - #276

Merged
bbiiggppiigg merged 2 commits into
masterfrom
bbiiggppiigg/remove-ported-instruction-tests
Aug 6, 2026
Merged

Remove ported instruction tests#276
bbiiggppiigg merged 2 commits into
masterfrom
bbiiggppiigg/remove-ported-instruction-tests

Conversation

@bbiiggppiigg

Copy link
Copy Markdown
Member

No description provided.

@bbiiggppiigg bbiiggppiigg changed the title Rmove ported instruction tests Remove ported instruction tests Aug 4, 2026
@bbiiggppiigg
bbiiggppiigg marked this pull request as ready for review August 4, 2026 20:28
@bbiiggppiigg
bbiiggppiigg requested review from hainest and kupsch August 4, 2026 20:29
@bbiiggppiigg

bbiiggppiigg commented Aug 4, 2026

Copy link
Copy Markdown
Member Author

These tests has been ported to dyninst.
dyninst/dyninst#2344
dyninst/dyninst#2345
dyninst/dyninst#2346
dyninst/dyninst#2347
dyninst/dyninst#2348

Remove them from testsuite so we don't have cross repo inconsistencies.

@hainest

hainest commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Could you split out the bluegene compiler removal? You can also remove the BlueGene/Q (bgq) compilers.

@bbiiggppiigg
bbiiggppiigg force-pushed the bbiiggppiigg/remove-ported-instruction-tests branch from 09e15c0 to 2b0006e Compare August 4, 2026 21:42
@hainest

hainest commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

The compiler stuff was split out (thank you much), but the commits weren't removed here.

@bbiiggppiigg

Copy link
Copy Markdown
Member Author

The compiler stuff was split out (thank you much), but the commits weren't removed here.

I know, the plan was to rebased this on top of master after #277 goes in.

These ten InstructionAPI tests decode fixed in-memory byte buffers and
never used a mutatee or attached to a process, so they have been ported
to the dyninst repository's integration test tree
(tests/integration/InstructionAPI/decoder/) where they run from the
build tree via ctest on any host architecture:

- power_decode.C, power_cft.C        -> decoder/ppc64le/{decode,branches}.cpp
- aarch64_cft.C                      -> decoder/aarch64/cft.cpp
- aarch64_decode_ldst.C              -> decoder/aarch64/ldst.cpp
- aarch64_simd.C                     -> decoder/aarch64/simd.cpp
- fucompp.C                          -> decoder/x86/fucompp.cpp
- mov_size_details.C                 -> decoder/x86/mov_size_details.cpp
- test_instruction_farcall.C         -> decoder/x86/farcall.cpp
- test_instruction_bind_eval.C       -> decoder/x86/bind_eval.cpp
- test_instruction_read_write.C      -> decoder/x86/read_write.cpp

Remove the test sources, their blocks in
src/specification/spec-grouped.pl, and regenerate the platform
directories (gprolog 1.5.0, Makefile.genspec gen-clean gen-all). The
regenerated diffs contain exactly the removal of these tests from
test_info_new.gen.C and cmake-mutators.txt on every platform.

The remaining instruction-module tests are aarch64_decode.C (an empty
stub whose executeTest() just returns PASSED) and
test_instruction_profile.C (decodes the host's libc via SymtabAPI, so
it depends on external state and stays here for now).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@bbiiggppiigg
bbiiggppiigg force-pushed the bbiiggppiigg/remove-ported-instruction-tests branch from 2b0006e to 314b003 Compare August 5, 2026 19:44
PR #270 removed the body of aarch64_decode.C (the test lives in the
Dyninst integration tests now) but left a stub file, the test's
specification facts, and its generated RunGroups -- so the empty test
was still being scheduled and built. Remove the specification block,
the stub, and regenerate the platform directories (the only generated
change is the aarch64_decode disk-mode groups disappearing).

Also delete files in src/instruction that nothing references:
- power_instruction_table.txt / power_instruction_oprands.txt: input
  data of the just-removed power_decode test
- ppc64_decode_test.cpp: an old standalone decoder test that was never
  wired into the specification or the build

src/instruction keeps test_instruction_profile.C and its
instruction_comp component, which remain real tests.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@bbiiggppiigg

Copy link
Copy Markdown
Member Author

Rebased after #277 merge.
Leftover of #270 also cleaned up.
@hainest @kupsch
Ready for review.

@hainest hainest left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested on a couple of machines with no issue. LGTM.

@bbiiggppiigg
bbiiggppiigg merged commit 8d868d7 into master Aug 6, 2026
1 check passed
@bbiiggppiigg
bbiiggppiigg deleted the bbiiggppiigg/remove-ported-instruction-tests branch August 6, 2026 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants