Skip to content

riscv_test_refine_thead_imm

Tsukasa OI edited this page Aug 15, 2023 · 4 revisions

Fix: Make T-Head testing pattern more generic

Issue Solved

On some T-Head vendor extensions, we test against the constant 18446744073709551615 (that is 2^64-1) to detect invalid immediate errors on -1. However, it heavily depends on the fact that the value used to print immediate value is a 64-bit unsigned type and this constant is not (and should not be) important (we just want to know that -1 is not valid).

This branch replaces all such occurrences of 18446744073709551615 with a more generic regular expression.

Clone this wiki locally