[PATCH] D148315: [RISCV] Modify arch string parsing order according to latest riscv spec
Alex Bradbury via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 18 23:49:49 PDT 2023
asb added a comment.
I'm starting to think we should just remove the ordering rules for z/s/x altogether when parsing arch strings I see that gcc 12.2.0 actually requires s and then z:
[asb at purge ~]$ riscv64-linux-gnu-gcc -march=rv64imafdc_svinval_zicbom t.c -c
[asb at purge ~]$ riscv64-linux-gnu-gcc -march=rv64imafdc_zicbom_svinval t.c -c
riscv64-linux-gnu-gcc: error: '-march=rv64imafdc_zicbom_svinval': unexpected ISA string at end: 'svinval'
So ISA naming strings aren't easily portable between clang and GCC right now, even if the same extension names are recognised.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148315/new/
https://reviews.llvm.org/D148315
More information about the cfe-commits
mailing list