]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Add missing vsetvl instruction type.
authorJu-Zhe Zhong <juzhe.zhong@rivai.ai>
Mon, 10 Oct 2022 13:43:22 +0000 (21:43 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Tue, 11 Oct 2022 01:39:43 +0000 (09:39 +0800)
When implementing built-in framework, I notice I missed
vsetvl instruction type, so add it in a single patch
preparing for the following patches.

gcc/ChangeLog:

* config/riscv/riscv.md: Add vsetvl instruction type.

Reviewed-by: Kito Cheng <kito.cheng@sifive.com>
gcc/config/riscv/riscv.md

index 014206fb8bd378feb4d3fab3b2870d2f5e8bd6db..2d1cda2b98fc00beea9f18b04273b554537c8186 100644 (file)
 ;; Classification of RVV instructions which will be added to each RVV .md pattern and used by scheduler.
 ;; rdvlenb     vector byte length vlenb csrr read
 ;; rdvl        vector length vl csrr read
+;; vsetvl      vector configuration-setting instrucions
 ;; 7. Vector Loads and Stores
 ;; vlde        vector unit-stride load instructions
 ;; vste        vector unit-stride store instructions
   "unknown,branch,jump,call,load,fpload,store,fpstore,
    mtc,mfc,const,arith,logical,shift,slt,imul,idiv,move,fmove,fadd,fmul,
    fmadd,fdiv,fcmp,fcvt,fsqrt,multi,auipc,sfb_alu,nop,ghost,bitmanip,rotate,
-   rdvlenb,rdvl,vlde,vste,vldm,vstm,vlds,vsts,
+   rdvlenb,rdvl,vsetvl,vlde,vste,vldm,vstm,vlds,vsts,
    vldux,vldox,vstux,vstox,vldff,vldr,vstr,
    vialu,viwalu,vext,vicalu,vshift,vnshift,vicmp,
    vimul,vidiv,viwmul,vimuladd,viwmuladd,vimerge,vimov,