[RISCV] Remove 'sx' when parsing arch string to match the latest ISA manual
authorJun Sha (Joshua) <cooper.joshua@linux.alibaba.com>
Thu, 20 Apr 2023 02:32:24 +0000 (10:32 +0800)
committerJun Sha (Joshua) <cooper.joshua@linux.alibaba.com>
Thu, 20 Apr 2023 02:32:24 +0000 (10:32 +0800)
commit3f81d25cee7065a4a7888bbe9ad7138081dcd4cf
treef8fe2bb32a5dbc047576998c390e10160165c9e4
parent914b38aa4b9afe5001b0e3d5bc5125af0a5529f2
[RISCV] Remove 'sx' when parsing arch string to match the latest ISA manual

In order to match the latest ISA manual, we need to remove sx prefix.

Reviewed By: asb

Differential Revision: https://reviews.llvm.org/D148617
clang/test/Driver/riscv-arch.c
llvm/lib/Support/RISCVISAInfo.cpp
llvm/unittests/Support/RISCVISAInfoTest.cpp