[all-commits] [llvm/llvm-project] c06483: [ARM] Reject invalid BF encoding when target is ne...
Hamza Khan via All-commits
all-commits at lists.llvm.org
Mon Jun 8 13:44:27 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c06483c6fb9fc84bed1ae33172323c9aa57a3ca4
https://github.com/llvm/llvm-project/commit/c06483c6fb9fc84bed1ae33172323c9aa57a3ca4
Author: Hamza Khan <99187565+HamzaKodez at users.noreply.github.com>
Date: 2026-06-08 (Mon, 08 Jun 2026)
Changed paths:
M llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
A llvm/test/MC/ARM/bf-invalid-target.s
Log Message:
-----------
[ARM] Reject invalid BF encoding when target is next instruction (#201533)
When the BF instruction targets the immediately following label, the
encoded branch offset becomes zero, causing LLVM to emit invalid machine
code.
Add validation in the fixup_bf_branch path to reject this case and emit
an error instead.
Add MC regression test to cover new validation.
Assisted by ChatGPT. Human-verified, debugged, tested and validating by
author.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list