You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
arcv: apex: Validate immediate arguments during expansion.
Add validation for immediate arguments in APEX intrinsic calls
that do not support the APEX_XD format. This check is performed
during riscv_expand_builtin_direct, where the actual values of
the current RTL expression are available.
The validation ensures that the argument is a constant integer
and falls within the correct range:
- For APEX_XI and APEX_XC formats: signed 12-bit [-2048, 2047]
- For APEX_XS format: signed 8-bit [-128, 127]
Report an error if the value does not meet the previous checks.
Signed-off-by: Luis Silva <[email protected]>
0 commit comments