Re: [NFC] RISC-V: Move lmul calculation into macro

2023-10-26 Thread 钟居哲
Committed. juzhe.zh...@rivai.ai From: Juzhe-Zhong Date: 2023-10-27 06:28 To: gcc-patches CC: kito.cheng; kito.cheng; jeffreyalaw; rdapp.gcc; Juzhe-Zhong Subject: [NFC] RISC-V: Move lmul calculation into macro Notice we calculate LMUL according to --param=riscv-autovec-lmul in multiple places

[NFC] RISC-V: Move lmul calculation into macro

2023-10-26 Thread Juzhe-Zhong
Notice we calculate LMUL according to --param=riscv-autovec-lmul in multiple places: int lmul = riscv_autovec_lmul == RVV_DYNAMIC ? RVV_M8 : riscv_autovec_lmul; Create a new macro for it for easier matain. gcc/ChangeLog: * config/riscv/riscv-opts.h (TARGET_MAX_LMUL): New macro.