Skip to content

Commit

Permalink
RISC-V: Fix typo
Browse files Browse the repository at this point in the history
gcc/ChangeLog:

        * config/riscv/riscv-vector-builtins.def: Fix typo.
        * config/riscv/riscv.cc (riscv_dwarf_poly_indeterminate_value): Ditto.
        * config/riscv/vector-iterators.md: Ditto.
  • Loading branch information
Li Xu authored and ouuleilei-bot committed Apr 4, 2023
1 parent d0b961b commit 1b948c2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions gcc/config/riscv/riscv-vector-builtins.def
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ along with GCC; see the file COPYING3. If not see
#define DEF_RVV_BASE_TYPE(NAME, TYPE)
#endif

/* Use "DEF_RVV_TYPE_INDEX" macro to define RVV function types.
The 'NAME' will be concatenated into intrinsic function name. */
/* Use "DEF_RVV_TYPE_INDEX" macro to define RVV function types. */
#ifndef DEF_RVV_TYPE_INDEX
#define DEF_RVV_TYPE_INDEX(VECTOR, MASK, SIGNED, UNSIGNED, EEW8_INDEX, EEW16_INDEX, \
EEW32_INDEX, EEW64_INDEX, SHIFT, DOUBLE_TRUNC, \
Expand Down
4 changes: 2 additions & 2 deletions gcc/config/riscv/riscv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7048,8 +7048,8 @@ riscv_dwarf_poly_indeterminate_value (unsigned int i, unsigned int *factor,
int *offset)
{
/* Polynomial invariant 1 == (VLENB / riscv_bytes_per_vector_chunk) - 1.
1. TARGET_MIN_VLEN == 32, olynomial invariant 1 == (VLENB / 4) - 1.
2. TARGET_MIN_VLEN > 32, olynomial invariant 1 == (VLENB / 8) - 1.
1. TARGET_MIN_VLEN == 32, polynomial invariant 1 == (VLENB / 4) - 1.
2. TARGET_MIN_VLEN > 32, polynomial invariant 1 == (VLENB / 8) - 1.
*/
gcc_assert (i == 1);
*factor = riscv_bytes_per_vector_chunk;
Expand Down
4 changes: 2 additions & 2 deletions gcc/config/riscv/vector-iterators.md
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@
(VNx1QI "vnx4hi") (VNx2QI "vnx4hi") (VNx4QI "vnx4hi")
(VNx8QI "vnx4hi") (VNx16QI "vnx4hi") (VNx32QI "vnx4hi") (VNx64QI "vnx4hi")
(VNx1HI "vnx2si") (VNx2HI "vnx2si") (VNx4HI "vnx2si")
(VNx8HI "vnx2si") (VNx16HI "vnx2si") (VNx32HI "vnx2SI")
(VNx8HI "vnx2si") (VNx16HI "vnx2si") (VNx32HI "vnx2si")
(VNx1SI "vnx2di") (VNx2SI "vnx2di") (VNx4SI "vnx2di")
(VNx8SI "vnx2di") (VNx16SI "vnx2di")
(VNx1SF "vnx1df") (VNx2SF "vnx1df")
Expand All @@ -738,7 +738,7 @@
(VNx1QI "vnx2hi") (VNx2QI "vnx2hi") (VNx4QI "vnx2hi")
(VNx8QI "vnx2hi") (VNx16QI "vnx2hi") (VNx32QI "vnx2hi")
(VNx1HI "vnx1si") (VNx2HI "vnx1si") (VNx4HI "vnx1si")
(VNx8HI "vnx1si") (VNx16HI "vnx1SI")
(VNx8HI "vnx1si") (VNx16HI "vnx1si")
])

(define_mode_attr VDEMOTE [
Expand Down

0 comments on commit 1b948c2

Please sign in to comment.