]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/config/i386/i386-expand.cc
i386: Do not emit mask compares for mode sizes < 16 [PR100445]
authorUros Bizjak <ubizjak@gmail.com>
Fri, 7 May 2021 09:15:07 +0000 (11:15 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Fri, 7 May 2021 09:16:34 +0000 (11:16 +0200)
commit92f372f00936a549de2cb9764eee722bb07959ba
treeb2b7c6433508db45f3138429165edcfb22d3f933
parent323b18d54b960d3ef64f60ad20838ef958334dc0
i386: Do not emit mask compares for mode sizes < 16 [PR100445]

Recent addition of v*cond* patterns for MMXMODEI modes allows 64bit MMX
modes to enter ix86_expand_sse_cmp. ix86_use_mask_cmp_p was not prepared
to reject mode sizes < 16, resulting in ICE due to unavailability of 64bit
masked PCOM instructions.

2021-05-07  Uroš Bizjak  <ubizjak@gmail.com>

gcc/
PR target/100445
* config/i386/i386-expand.c (ix86_use_mask_cmp_p):
Return false for mode sizes < 16.

gcc/testsuite/

PR target/100445
* gcc.target/i386/pr100445-1.c: New test.
gcc/config/i386/i386-expand.c
gcc/testsuite/gcc.target/i386/pr100445-1.c [new file with mode: 0644]