From: Jeff Law Date: Fri, 21 Oct 2016 20:41:34 +0000 (-0600) Subject: re PR tree-optimization/71947 (x ^ y not folded to 0 if x == y by DOM) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=20276dc9d1b4222926d4670c55933c121fa3d2e3;p=gcc.git re PR tree-optimization/71947 (x ^ y not folded to 0 if x == y by DOM) * PR tree-optimization/71947 * gcc.dg/tree-ssa/pr71947-4.c: Avoid x86 opcode. * gcc.dg/tree-ssa/pr71947-5.c: Likewise. * gcc.dg/tree-ssa/pr71947-6.c: Make it opt-in rather than opt-out. From-SVN: r241429 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 62aa521b596..09db0f8c050 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2016-10-21 Jeff Law + + * PR tree-optimization/71947 + * gcc.dg/tree-ssa/pr71947-4.c: Avoid x86 opcode. + * gcc.dg/tree-ssa/pr71947-5.c: Likewise. + * gcc.dg/tree-ssa/pr71947-6.c: Make it opt-in rather than opt-out. + 2016-10-21 Kugan Vivekanandarajah * gcc.dg/ipa/vrp5.c: New test. diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr71947-4.c b/gcc/testsuite/gcc.dg/tree-ssa/pr71947-4.c index a881f0d52cd..a2b19fe9df6 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr71947-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr71947-4.c @@ -6,7 +6,7 @@ static inline long load(long *p) { long ret; - asm ("movq %1,%0\n\t" : "=r" (ret) : "m" (*p)); + asm ("xyzzy %1,%0\n\t" : "=r" (ret) : "m" (*p)); if (ret != *p) __builtin_unreachable(); return ret; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr71947-5.c b/gcc/testsuite/gcc.dg/tree-ssa/pr71947-5.c index fa679f0f9da..e7038d0237f 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr71947-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr71947-5.c @@ -5,7 +5,7 @@ static inline long load(long *p) { long ret; - asm ("movq %1,%0\n\t" : "=r" (ret) : "m" (*p)); + asm ("xyzzy %1,%0\n\t" : "=r" (ret) : "m" (*p)); if (ret != *p) __builtin_unreachable(); return ret; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr71947-6.c b/gcc/testsuite/gcc.dg/tree-ssa/pr71947-6.c index 9cb89cbfe03..9463535c6ca 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr71947-6.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr71947-6.c @@ -1,4 +1,5 @@ -/* { dg-do compile } */ +/* This is highly dependent on branch costing, so make it opt-in. */ +/* { dg-do compile { target { i?86-*-* x86_64-*-* } } } */ /* { dg-options "-O2 -fno-tree-vrp -fdump-tree-dom-details" } */