Re: [PATCH v1 05/15] tcg/riscv: Add riscv vset{i}vli support

2024-08-18 Thread LIU Zhiwei
On 2024/8/19 10:35, Richard Henderson wrote: On 8/19/24 11:34, LIU Zhiwei wrote: @@ -1914,6 +2029,11 @@ static void tcg_out_vec_op(TCGContext *s, TCGOpcode opc, const TCGArg args[TCG_MAX_OP_ARGS], const int const_args[TCG_MAX_OP_ARGS])

Re: [PATCH v1 05/15] tcg/riscv: Add riscv vset{i}vli support

2024-08-18 Thread Richard Henderson
On 8/19/24 11:34, LIU Zhiwei wrote: @@ -1914,6 +2029,11 @@ static void tcg_out_vec_op(TCGContext *s, TCGOpcode opc, const TCGArg args[TCG_MAX_OP_ARGS], const int const_args[TCG_MAX_OP_ARGS])   { +    TCGType type = vecl + TCG_TYPE_V64; + +

Re: [PATCH v1 05/15] tcg/riscv: Add riscv vset{i}vli support

2024-08-18 Thread LIU Zhiwei
On 2024/8/14 16:24, Richard Henderson wrote: On 8/13/24 21:34, LIU Zhiwei wrote: From: TANG Tiancheng In RISC-V, vector operations require initial configuration using the vset{i}vl{i} instruction. This instruction:    1. Sets the vector length (vl) in bytes    2. Configures the vtype regist

Re: [PATCH v1 05/15] tcg/riscv: Add riscv vset{i}vli support

2024-08-14 Thread Richard Henderson
On 8/13/24 21:34, LIU Zhiwei wrote: From: TANG Tiancheng In RISC-V, vector operations require initial configuration using the vset{i}vl{i} instruction. This instruction: 1. Sets the vector length (vl) in bytes 2. Configures the vtype register, which includes: SEW (Single Element Wid

[PATCH v1 05/15] tcg/riscv: Add riscv vset{i}vli support

2024-08-13 Thread LIU Zhiwei
From: TANG Tiancheng In RISC-V, vector operations require initial configuration using the vset{i}vl{i} instruction. This instruction: 1. Sets the vector length (vl) in bytes 2. Configures the vtype register, which includes: SEW (Single Element Width) LMUL (vector register group multi