Landing: 7276d80fedab

Project / Subsystem

gcc / amdgcn

Date

2026-01-30

Author

Andrew Stubbs

Commit

7276d80fedab2d824bb0fcd0d7eca2b9138d963f

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
amdgcn
patch_id
—
commit_hash
7276d80fedab2d824bb0fcd0d7eca2b9138d963f
source_type
github
headline
amdgcn: Add vector count leading zeros/ones instructions
tldr
Vector versions of count leading zeros/ones instructions are now available for AMD GPUs.
author
Andrew Stubbs
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • amd
  • • gpu
  • • bit manipulation
  • • instruction selection
discussion_id_link
—
bugzilla_pr
—
date
2026-01-30T00:00:00.000Z

This commit adds vector counterparts for the scalar count leading zeros (ctz) and count leading ones (clz) instructions on AMD GPUs. Previously, only scalar versions were available. This enhancement provides more complete bit manipulation capabilities for vector data types on the AMDGPU architecture.