2016-02-11 Alexandre Oliva <aoliva@redhat.com>
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Feb 2016 18:26:00 +0000 (18:26 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Feb 2016 18:26:00 +0000 (18:26 +0000)
PR target/69634
* regstat.c (regstat_bb_compute_calls_crossed): Disregard
debug insns.

PR target/69634
* gcc.dg/pr69634.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233250 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/regstat.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr69634.c [new file with mode: 0644]

index bcb9e84..c4711f3 100644 (file)
@@ -1,3 +1,9 @@
+2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
+
+       PR target/69634
+       * regstat.c (regstat_bb_compute_calls_crossed): Disregard
+       debug insns.
+
 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
index af5e475..c05b69f 100644 (file)
@@ -444,7 +444,7 @@ regstat_bb_compute_calls_crossed (unsigned int bb_index, bitmap live)
       struct df_insn_info *insn_info = DF_INSN_INFO_GET (insn);
       unsigned int regno;
 
-      if (!INSN_P (insn))
+      if (!NONDEBUG_INSN_P (insn))
        continue;
 
       /* Process the defs.  */
index c15fe5f..5fab7cb 100644 (file)
@@ -1,3 +1,8 @@
+2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
+
+       PR target/69634
+       * gcc.dg/pr69634.c: New.
+
 2016-02-09  Richard Biener  <rguenther@suse.de>
 
        * gcc.dg/vect/vect-mask-store-move-1.c: Add missing space.
diff --git a/gcc/testsuite/gcc.dg/pr69634.c b/gcc/testsuite/gcc.dg/pr69634.c
new file mode 100644 (file)
index 0000000..59e3739
--- /dev/null
@@ -0,0 +1,21 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -fno-dce -fschedule-insns -fno-tree-vrp -fcompare-debug" } */
+/* { dg-additional-options "-Wno-psabi -mno-sse" { target i?86-*-* x86_64-*-* } } */
+
+typedef unsigned short u16;
+typedef short v16u16 __attribute__ ((vector_size (16)));
+typedef unsigned v16u32 __attribute__ ((vector_size (16)));
+typedef unsigned long long v16u64 __attribute__ ((vector_size (16)));
+
+u16
+foo(u16 u16_1, v16u16 v16u16_0, v16u32 v16u64_0, v16u16 v16u16_1, v16u32 v16u32_1, v16u64 v16u64_1)
+{
+  v16u64_1 /= (v16u64){~v16u32_1[1]};
+  u16_1 = 0;
+  u16_1 /= v16u32_1[2];
+  v16u64_1 -= (v16u64) v16u16_1;
+  u16_1 >>= 1;
+  u16_1 -= ~0;
+  v16u16_1 /= (v16u16){~u16_1, 1 - v16u64_0[0], 0xffb6};
+  return u16_1 + v16u16_0[1] + v16u16_1[3] + v16u64_1[0] + v16u64_1[1];
+}