Canonical order for z-prefixed extension are rely on the canonical order of
single letter extension, however we didn't put i into the list before,
so when we put zicsr or zifencei it will got exception.
gcc/ChangeLog:
* config/riscv/arch-canonicalize (CANONICAL_ORDER): Add `i` to
CANONICAL_ORDER.
(cherry picked from commit
e399cde6f9c89cafbbf6c3274c0af3c369d4f872)
from functools import reduce
-CANONICAL_ORDER = "mafdgqlcbjtpvn"
+CANONICAL_ORDER = "imafdgqlcbjtpvn"
LONG_EXT_PREFIXES = ['z', 's', 'h', 'x']
#