Message ID | 20211109162825.113590-1-kito.cheng@sifive.com |
---|---|
State | New |
Headers | show |
Series | [committed,PR/target,102957] Allow Z*-ext extension with only 2 char. | expand |
diff --git a/gcc/common/config/riscv/riscv-common.c b/gcc/common/config/riscv/riscv-common.c index 37b6ea80086..f3c120b4cb4 100644 --- a/gcc/common/config/riscv/riscv-common.c +++ b/gcc/common/config/riscv/riscv-common.c @@ -202,7 +202,6 @@ multi_letter_subset_rank (const std::string &subset) high_order = 1; break; case 'z': - gcc_assert (subset.length () > 2); high_order = 2; break; case 'x': diff --git a/gcc/testsuite/gcc.target/riscv/pr102957.c b/gcc/testsuite/gcc.target/riscv/pr102957.c new file mode 100644 index 00000000000..8a7e541bf6d --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/pr102957.c @@ -0,0 +1,5 @@ +/* { dg-do compile } */ +/* { dg-options "-O -march=rv64gzb -mabi=lp64" } */ +int foo() +{ +}