]> git.ipfire.org Git - thirdparty/gcc.git/commit
x86: Also check mode of memory broadcast in bcst_mem_operand
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 22 Jan 2022 20:04:30 +0000 (12:04 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 24 Jan 2022 00:40:24 +0000 (16:40 -0800)
commit4d2321314a656dd3e30117e2a5266cbacb1e60eb
tree7e9e54f886e86cfbcc5af680880ac914507f73de
parent0c940703f00ded736c42745ac542904e22db8d51
x86: Also check mode of memory broadcast in bcst_mem_operand

Return false for invalid mode on memory broadcast in bcst_mem_operand:

(vec_duplicate:V16SF (mem/j:V4SF (reg/v/f:DI 109 [ b ])))

gcc/

PR target/104188
* config/i386/predicates.md (bcst_mem_operand): Also check mode
of memory broadcast.

gcc/testsuite/

PR target/104188
* gcc.target/i386/pr104188.c: New test.
gcc/config/i386/predicates.md
gcc/testsuite/gcc.target/i386/pr104188.c [new file with mode: 0644]