]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Fix vec_duplicate[bimode] expander [PR119572].
authorRobin Dapp <rdapp@ventanamicro.com>
Tue, 1 Apr 2025 19:17:54 +0000 (21:17 +0200)
committerRobin Dapp <rdapp@ventanamicro.com>
Wed, 2 Apr 2025 19:41:18 +0000 (21:41 +0200)
commit716d39f0a248c1003033e6a312c736180790ef70
tree837b798cf59c0a8441e8b01791cb0e9ce5a376e9
parentdd6ebc0a3473a830115995bdcaf8f797ebd085a3
RISC-V: Fix vec_duplicate[bimode] expander [PR119572].

Since r15-9062-g70391e3958db79 we perform vector bitmask initialization
via the vec_duplicate expander directly.  This triggered a latent bug in
ours where we missed to mask out the single bit which resulted in an
execution FAIL of pr119114.c

The attached patch adds the 1-masking of the broadcast operand.

PR target/119572

gcc/ChangeLog:

* config/riscv/autovec.md: Mask broadcast value.
gcc/config/riscv/autovec.md