]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Handle zi* extension correctly for arch-canonicalize script
authorKito Cheng <kito.cheng@sifive.com>
Wed, 27 Oct 2021 15:41:17 +0000 (23:41 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Wed, 30 Mar 2022 09:02:45 +0000 (17:02 +0800)
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)

gcc/config/riscv/arch-canonicalize

index ea95a0693f3289bcc8e879a1a7487a0402fed671..c7df3c8a3137f992306308ab887e9244f8220fc3 100755 (executable)
@@ -28,7 +28,7 @@ import itertools
 from functools import reduce
 
 
-CANONICAL_ORDER = "mafdgqlcbjtpvn"
+CANONICAL_ORDER = "imafdgqlcbjtpvn"
 LONG_EXT_PREFIXES = ['z', 's', 'h', 'x']
 
 #