GCC Newspaper
JUNE 15, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
testsuite

Testsuite adds PowerPC future hardware compiler support checks

New `lib/target-supports.exp` procedures enable testing future PowerPC hardware support, both at compile time and runtime.

This commit adds three new procedures to lib/target-supports.exp for testing future PowerPC hardware. These procedures allow the testsuite to verify that the compiler can recognize and handle -mcpu=future, that the assembler supports corresponding instructions, and that the hardware itself can execute these future instructions at runtime. This will allow for enhanced testing capabilities for upcoming PowerPC architectures.

In Details

The lib/target-supports.exp file within the GCC testsuite defines effective-target procedures that control whether a particular test case should run based on compiler, assembler, or runtime hardware capabilities. This commit extends these procedures by adding specific checks for future PowerPC architectural features.

For Context

Compilers like GCC need to be thoroughly tested to ensure they correctly translate code for various hardware. This is especially true for new hardware features that don't exist yet. The GCC testsuite includes mechanisms, called 'effective targets,' allowing tests to specify what hardware or compiler features they require. This change introduces new effective targets specifically for future PowerPC processors, enabling the testsuite to verify GCC's support for these upcoming hardware capabilities both during compilation and when running the compiled code.

Filed Under: testsuitepowerpchardware support