Skip to content

Commit

Permalink
* PR tree-optimization/71947
Browse files Browse the repository at this point in the history
	* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@241429 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
law committed Oct 21, 2016
1 parent 6cb5d05 commit 5a09698
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions gcc/testsuite/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2016-10-21 Jeff Law <law@redhat.com>

* 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 <kuganv@linaro.org>

* gcc.dg/ipa/vrp5.c: New test.
Expand Down
2 changes: 1 addition & 1 deletion gcc/testsuite/gcc.dg/tree-ssa/pr71947-4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion gcc/testsuite/gcc.dg/tree-ssa/pr71947-5.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion gcc/testsuite/gcc.dg/tree-ssa/pr71947-6.c
Original file line number Diff line number Diff line change
@@ -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" } */


Expand Down

0 comments on commit 5a09698

Please sign in to comment.