From 20276dc9d1b4222926d4670c55933c121fa3d2e3 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 21 Oct 2016 14:41:34 -0600 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/gcc.dg/tree-ssa/pr71947-4.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/pr71947-5.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/pr71947-6.c | 3 ++- 4 files changed, 11 insertions(+), 3 deletions(-) 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" } */ -- 2.30.2