Landing: e78f1c99da18

Project / Subsystem

gcc / x86

Date

2026-08-24

Author

H.J. Lu

Commit

e78f1c99da18c5b15d20dcb2b0e28659634292fb

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
x86
patch_id
—
commit_hash
e78f1c99da18c5b15d20dcb2b0e28659634292fb
source_type
github
headline
Improve truncsfbf tests
tldr
Refactors and improves test coverage for the x86 truncsfbf instruction.
author
H.J. Lu
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • x86
  • • testing
  • • sse
  • • avx512
discussion_id_link
—
bugzilla_pr
—
date
2026-08-24T00:00:00.000Z

This commit refactors the test suite for the x86 truncsfbf (truncate single-precision float to BFloat16) instruction. It consolidates duplicated code by moving common checks into a new header file, truncsfbf-check.h. This improves maintainability and reduces redundancy in test cases like truncsfbf-2.c, truncsfbf-5.c, and truncsfbf-6.c. The changes also ensure the tests correctly check for runtime support of SSE2 and add necessary scan directives for the vcvtneps2bf16 instruction.