public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/c++-modules] Refine typo to fix ICE.
@ 2020-08-28 16:02 Nathan Sidwell
  0 siblings, 0 replies; only message in thread
From: Nathan Sidwell @ 2020-08-28 16:02 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:108477875f01798eecd7780207396b8c44930ae9

commit 108477875f01798eecd7780207396b8c44930ae9
Author: liuhongt <hongtao.liu@intel.com>
Date:   Mon Aug 24 20:52:20 2020 +0800

    Refine typo to fix ICE.
    
    2020-08-24  Hongtao Liu  <hongtao.liu@intel.com>
    
    gcc/ChangeLog:
            PR target/96755
            * config/i386/sse.md: Correct the mode of NOT operands to
            SImode.
    
    gcc/testsuite/ChangeLog:
    
            * gcc.target/i386/pr96755.c: New test.

Diff:
---
 gcc/config/i386/sse.md                  |  2 +-
 gcc/testsuite/gcc.target/i386/pr96755.c | 16 ++++++++++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md
index 6f1f7f79673..380dc453b0d 100644
--- a/gcc/config/i386/sse.md
+++ b/gcc/config/i386/sse.md
@@ -1588,7 +1588,7 @@
 (define_split
   [(set (match_operand:DI 0 "mask_reg_operand")
 	(zero_extend:DI
-	  (not:DI (match_operand:SI 1 "mask_reg_operand"))))]
+	  (not:SI (match_operand:SI 1 "mask_reg_operand"))))]
   "TARGET_AVX512BW && reload_completed"
   [(parallel
      [(set (match_dup 0)
diff --git a/gcc/testsuite/gcc.target/i386/pr96755.c b/gcc/testsuite/gcc.target/i386/pr96755.c
new file mode 100644
index 00000000000..20fed589998
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/pr96755.c
@@ -0,0 +1,16 @@
+/* { dg-do compile } */
+/* { dg-options "-O3 -march=skylake-avx512" } */
+
+extern long var_22;
+extern int arr_3[];
+extern int arr_4[][20][9];
+short a;
+void test(unsigned short b, unsigned char e, long long g) {
+  for (long c = 0; c < 20ULL; c = g)
+    for (short d = 0; d < 9; d++)
+      for (char f = e; f < 8; f += 4) {
+        arr_3[f] = 0;
+        var_22 = ~(unsigned)b;
+        arr_4[c][d][f] = a;
+      }
+}


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-28 16:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-28 16:02 [gcc/devel/c++-modules] Refine typo to fix ICE Nathan Sidwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).