RISC-V: Add test cases for the RVV mask insn shortcut.
authorPan Li <pan2.li@intel.com>
Fri, 14 Apr 2023 03:25:11 +0000 (11:25 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Mon, 17 Apr 2023 01:51:35 +0000 (09:51 +0800)
commit0c4d366ef757da28800f786fb5ea02b6e4918719
tree660286bef06d78e35a1470ee4a8e87bffecf500e
parenta167416a239a4afcc7e89d2ccdea3ffa318defac
RISC-V: Add test cases for the RVV mask insn shortcut.

There are sorts of shortcut codegen for the RVV mask insn. For
example.

vmxor vd, va, va => vmclr vd.

We would like to add more optimization like this but first of all
we must add the tests for the existing shortcut optimization, to
ensure we don't break existing optimization from underlying shortcut
optimization.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/base/mask_insn_shortcut.c: New test.

Signed-off-by: Pan Li <pan2.li@intel.com>
gcc/testsuite/gcc.target/riscv/rvv/base/mask_insn_shortcut.c [new file with mode: 0644]