From ece615ecc6ebbc33fbe0ccb024f3c79ad23789bd Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Fri, 3 Nov 2017 17:37:39 +0100 Subject: [PATCH] re PR testsuite/82828 (i386/pr70263-2.c fail) PR testsuite/82828 PR rtl-optimization/70263 * gcc.target/i386/pr70263-2.c: Fix invalid testcase. From-SVN: r254385 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.target/i386/pr70263-2.c | 23 ++++++++--------------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3b7276e9cdb..6d797e5dc02 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-11-03 Uros Bizjak + + PR testsuite/82828 + PR rtl-optimization/70263 + * gcc.target/i386/pr70263-2.c: Fix invalid testcase. + 2017-11-03 Marc Glisse * gcc.dg/tree-ssa/negneg-1.c: New file. diff --git a/gcc/testsuite/gcc.target/i386/pr70263-2.c b/gcc/testsuite/gcc.target/i386/pr70263-2.c index 18ebbf05fb7..19f79fd0e36 100644 --- a/gcc/testsuite/gcc.target/i386/pr70263-2.c +++ b/gcc/testsuite/gcc.target/i386/pr70263-2.c @@ -4,20 +4,13 @@ /* { dg-final { scan-rtl-dump "Adding REG_EQUIV to insn \[0-9\]+ for source of insn \[0-9\]+" "ira" } } */ typedef float XFtype __attribute__ ((mode (XF))); -typedef _Complex float XCtype __attribute__ ((mode (XC))); -XCtype -__mulxc3 (XFtype a, XFtype b, XFtype c, XFtype d) + +void bar (XFtype); + +void +foo (XFtype a, XFtype c) { - XFtype ac, bd, ad, bc, x, y; - ac = a * c; -__asm__ ("": "=m" (ac):"m" (ac)); - if (x != x) - { - _Bool recalc = 0; - if (((!(!(((ac) - (ac)) != ((ac) - (ac))))))) - recalc = 1; - if (recalc) - x = __builtin_huge_vall () * (a * c - b * d); - } - return x; + XFtype ac = a * c; + + bar (ac); } -- 2.30.2