GCC Newspaper
JULY 29, 2026
Date
/
Architectures
Components
Topics
News & Policy
vect

Vect: Add back testcases for trapping math with comparisons [PR36190]

Reintroduced test cases for vectorization of trapping math operations with comparisons, fixing a historical oversight.

This commit adds back test cases for the vectorization of operations involving trapping math and comparisons, specifically addressing issues related to PR36190. These tests, previously renamed and then fixed, were not reinstated for trapping math until now. They are explicitly enabled with the -ftrapping-math flag.

In Details

The vectorization subsystem has reintroduced test cases for vect-ifcvt and other patterns involving trapping floating-point arithmetic and comparisons, fixing PR36190. These tests, which were previously renamed and then fixed but not re-enabled for the trapping math codepaths, are now added back with the -ftrapping-math flag. The naming vect-ifcvt-11a.c accounts for an existing vect-ifcvt-11.c.

For Context
Vectorization
An optimization technique where the compiler transforms code to operate on multiple data elements simultaneously using wider CPU registers (SIMD instructions). This can significantly improve performance for data-parallel tasks.
trapping math
Floating-point operations that, when encountering exceptional conditions like overflow or inexact results, trigger a CPU trap (an interrupt) to be handled by software. This contrasts with non-trapping math, which typically produces a default result (e.g., infinity, NaN) without interrupting execution.
PR36190
A Problem Report (PR) identifier in the GCC bug tracking system, indicating a specific issue that has been reported and is being addressed.
Filed Under: vectorizationtestsuiteoptimizationfloating-point