Landing: 6da0b1468bfc
Project / Subsystem
gcc / arc
Date
2026-09-17
Author
Michiel Derhaeg
Commit
6da0b1468bfc4fbf4e8029b9dd634c31cb8261d8
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- arc
- patch_id
- —
- commit_hash
- 6da0b1468bfc4fbf4e8029b9dd634c31cb8261d8
- source_type
- github
- headline
- arc: Don't advertise optab for unsupported vector modes [PR126243]
- tldr
- Prevents compiler ICEs by restricting vector operation advertising to supported modes.
- author
- Michiel Derhaeg
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • arc
- • compiler
- • bugfix
- • vectorization
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-17T00:00:00.000Z
This commit corrects the advertisement of vector operation optabs for the ARC architecture. Previously, operations like multiply and divide were advertised for V2SImode even when not supported by TARGET_PLUS_QMACW. This led to middle-end ICEs when operands degraded to DImode. The change restricts these optabs to be advertised only when TARGET_PLUS_QMACW is enabled, ensuring that vector modes are correctly supported.