i386: Fix type of one_cmplv2qi2 alternatives 1,2 [PR103915]

2022-01-05  Uroš Bizjak  <ubizjak@gmail.com>

gcc/ChangeLog:

	PR target/103915
	* config/i386/mmx.md (one_cmplv2qi2): Change
	alternatives 1,2 type from sselog to sselog1.

gcc/testsuite/ChangeLog:

	PR target/103915
	* gcc.target/i386/pr103915.c: New test.
This commit is contained in:
Uros Bizjak 2022-01-05 20:08:15 +01:00
parent 877c9e332f
commit 6aa44066b3
2 changed files with 12 additions and 1 deletions

View file

@ -2752,7 +2752,7 @@
""
"#"
[(set_attr "isa" "*,sse2,avx512vl")
(set_attr "type" "negnot,sselog,sselog")
(set_attr "type" "negnot,sselog1,sselog1")
(set_attr "mode" "SI,TI,TI")])
(define_split

View file

@ -0,0 +1,11 @@
/* PR target/103915 */
/* { dg-do compile } */
/* { dg-options "-flive-range-shrinkage" } */
char __attribute__((__vector_size__ (2))) data;
void
foo (void)
{
data = ~data;
}