Landing: ec4f03aae5e8

Project / Subsystem

gcc / risc-v

Date

2026-07-15

Author

Jim Lin

Commit

ec4f03aae5e81c67e0cb5afd7f5c7cbf199fa411

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
risc-v
patch_id
commit_hash
ec4f03aae5e81c67e0cb5afd7f5c7cbf199fa411
source_type
github
headline
RISC-V: Fix GE/GEU zicond splitter to emit correct comparison
tldr
Corrects a RISC-V code generation bug where GE/GEU comparisons were miscompiled.
author
Jim Lin
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • risc-v
  • compiler
  • bugfix
  • code generation
discussion_id_link
bugzilla_pr
date
2026-07-15T00:00:00.000Z

A code generation splitter for RISC-V’s zicond extension incorrectly used a greater-than comparison instead of a greater-than-or-equal-to comparison for GE/GEU operations. This led to miscompilation when the input value was exactly 1. The fix ensures the splitter emits the correct comparison, matching the intended behavior.