Landing: 04b71bc24bc7

Project / Subsystem

gcc / i386

Date

2026-08-18

Author

H.J. Lu

Commit

04b71bc24bc7e1da1bb2ea347301056e1ddf3673

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
i386
patch_id
—
commit_hash
04b71bc24bc7e1da1bb2ea347301056e1ddf3673
source_type
github
headline
zero-scratch-regs-[29|30].c: Disable TARGET_USE_FFREEP to fix testsuite failures
tldr
Disables an x87 FPU optimization in i386 test cases to prevent assembler scan failures.
author
H.J. Lu
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • i386
  • • x87
  • • testsuite
  • • optimization
discussion_id_link
—
bugzilla_pr
—
date
2026-08-18T00:00:00.000Z

Test cases zero-scratch-regs-29.c and zero-scratch-regs-30.c were failing because the TARGET_USE_FFREEP option, which enables the ffreep instruction as a replacement for fstp, was enabled by default. This led to assembler scan failures as the tests expected fstp. This commit modifies the test cases to disable this optimization using -mtune-ctrl=^use_ffreep, resolving the failures.