aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/expressions.h
diff options
context:
space:
mode:
authorRobin Dapp <rdapp@ventanamicro.com>2023-10-15 22:36:59 +0200
committerRobin Dapp <rdapp@ventanamicro.com>2023-10-23 18:42:11 +0200
commit32b74c9e1d46932a4bbb1f46353bfc43c702c20a (patch)
tree0a8eab6269beaf66ffc1a32f8925dfa6380fe275 /gcc/go/gofrontend/expressions.h
parent82bbbb73c67f79582d38a1aa63984987dcd0923a (diff)
downloadgcc-32b74c9e1d46932a4bbb1f46353bfc43c702c20a.zip
gcc-32b74c9e1d46932a4bbb1f46353bfc43c702c20a.tar.gz
gcc-32b74c9e1d46932a4bbb1f46353bfc43c702c20a.tar.bz2
vect: Allow same precision for bit-precision conversions.
In PR111794 we miss a vectorization because on riscv type precision and mode precision differ for mask types. We can still vectorize when allowing assignments with the same precision for dest and source which is what this patch does. gcc/ChangeLog: PR tree-optimization/111794 * tree-vect-stmts.cc (vectorizable_assignment): Add same-precision exception for dest and source. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/slp-mask-1.c: New test. * gcc.target/riscv/rvv/autovec/slp-mask-run-1.c: New test.
Diffstat (limited to 'gcc/go/gofrontend/expressions.h')
0 files changed, 0 insertions, 0 deletions