From: Uros Bizjak Date: Wed, 5 Jan 2022 19:08:15 +0000 (+0100) Subject: i386: Fix type of one_cmplv2qi2 alternatives 1,2 [PR103915] X-Git-Tag: basepoints/gcc-13~2043 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6aa44066b342b9636a736f28d7ac3a0d44dae5c8;p=thirdparty%2Fgcc.git i386: Fix type of one_cmplv2qi2 alternatives 1,2 [PR103915] 2022-01-05 Uroš Bizjak 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. --- diff --git a/gcc/config/i386/mmx.md b/gcc/config/i386/mmx.md index fc8ec5e4d499..96d85a54e10b 100644 --- a/gcc/config/i386/mmx.md +++ b/gcc/config/i386/mmx.md @@ -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 diff --git a/gcc/testsuite/gcc.target/i386/pr103915.c b/gcc/testsuite/gcc.target/i386/pr103915.c new file mode 100644 index 000000000000..34f1d6355102 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr103915.c @@ -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; +}