Landing: 919c0d16c91c

Project / Subsystem

gcc / i386

Date

2026-09-07

Author

liuhongt

Commit

919c0d16c91c930c374db6665f55595653511636

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
i386
patch_id
—
commit_hash
919c0d16c91c930c374db6665f55595653511636
source_type
github
headline
i386: Fix V2SF zero move in V4SF vec_init for non-SSE2 targets
tldr
i386: Fixes V4SF vec_init on targets without SSE2 by using emit_move_insn to materialize V2SF zeros correctly.
author
liuhongt
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • i386
  • • vector
  • • optimization
  • • sse
discussion_id_link
—
bugzilla_pr
—
date
2026-09-07T00:00:00.000Z

This patch resolves an issue on i386 targets that do not support SSE2, where initializing a V4SF vector with zeros for its upper V2SF half would fail. The old implementation used a raw SET instruction, bypassing fallbacks that would correctly materialize the zero using integer modes when movv2sf was unavailable. By switching to emit_move_insn, the zero is now correctly materialized as a DImode move, resolving the problem and generating expected code sequences.