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

Testsuite: Skip arm/muldi-1.c test case when compiling with -mthumb.

This commit disables the `muldi-1.c` test on ARM when compiled with `-mthumb` due to an incompatibility.

A recently added test case for ARM (muldi-1.c), designed to verify a fix for middle-end issue PR middle-end/122871, was not designed to be compiled with the -mthumb option. This commit adds a requires-effective-target clause to skip the test when compiling with -mthumb. This prevents failures and ensures the test suite runs correctly in different ARM configurations.

In Details

The commit adds a requires-effective-target clause to gcc.target/arm/muldi-1.c to skip the test when compiled with -mthumb. This is necessary because the test case was not written to be compatible with the Thumb instruction set. The test relates to PR middle-end/122871.

For Context

The GCC testsuite contains many individual test programs that are compiled and run to verify the correctness of the compiler. This commit modifies one of those tests for the ARM architecture. The -mthumb option tells the compiler to generate code using the Thumb instruction set, which is a smaller, more compact instruction set for ARM processors. This change ensures that the test is only run when it's compatible with the chosen compilation options.

Filed Under: testsuitearmthumb