Landing: 2c4296b13f1d

Project / Subsystem

gcc / gcc

Date

2026-08-19

Author

H.J. Lu

Commit

2c4296b13f1ded539ae4535a4e86dc9565f504ff

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc
patch_id
—
commit_hash
2c4296b13f1ded539ae4535a4e86dc9565f504ff
source_type
github
headline
builtin copysign tests: Disable TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
tldr
Builtin copysign tests now disable a specific SSE optimization to avoid instruction mismatches.
author
H.J. Lu
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • x86
  • • sse
  • • optimization
  • • testsuite
discussion_id_link
—
bugzilla_pr
—
date
2026-08-19T00:00:00.000Z

Tests for the builtin copysign function were failing because the compiler generated andps instructions when pand was expected, due to a specific optimization flag TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL being enabled by default. This commit disables this optimization for the affected tests using -mtune-ctrl=^sse_packed_single_insn_optimal, resolving the instruction mismatches.