On 03/15/2016 02:26 AM, Andreas Schwab wrote:
Richard Henderson <r...@redhat.com> writes:

diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr68714.c 
b/gcc/testsuite/gcc.dg/tree-ssa/pr68714.c
new file mode 100644
index 0000000..741d311
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pr68714.c
@@ -0,0 +1,9 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -fdump-tree-optimized" } */
+
+typedef int vec __attribute__((vector_size(16)));
+vec f(vec x,vec y){
+  return x<y|x==y;
+}
+
+/* { dg-final { scan-tree-dump-times " <= " 1 "optimized" } } */

That fails on ia64:

$ grep " <= " pr68714.c.211t.optimized
   _10 = _8 <= _9 ? -1 : 0;
   _13 = _11 <= _12 ? -1 : 0;
   _16 = _14 <= _15 ? -1 : 0;

Ah, sure. I should have simply tested the reassoc1 dump file, before generic vector lowering.


r~

Reply via email to