Commit 457bde50 authored by Simon Cook's avatar Simon Cook Committed by Jeremy Bennett
Browse files

RISC-V: Make jump benefits signed



A bug exists whereby instructions for jump tables are being inserted by
the linker, but the table not being instantiated has occurred due to a
comparison between the jump table benefit (as an unsigned value), and
the end of table analysis marker (signed -1) being treated as an
unsigned comparison and incorrectly noting that there is no benefit,
causing the table to be omitted. This patch changes the values holding
size differences to be signed, allowing these comparisons to behave
correctly, and correctly generate the table.

Signed-off-by: default avatarSimon Cook <simon.cook@embecosm.com>
parent 3f4ba8fd
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment