[4/6] rs6000: Fix testsuite bug in check_ppc_float128_hw_available

Message ID 90c421a46e8d95a2a210257315cfb3cf8c6ec5ed.1531778766.git.segher@kernel.crashing.org
State New
Headers show
Series
  • rs6000: Test all rs6000 floating point conversions
Related show

Commit Message

Segher Boessenkool July 16, 2018, 10:52 p.m.
The test program for ppc_float128_hw_available would always return
false, since there is a syntax error in that test program.


2018-07-16  Segher Boessenkool  <segher@kernel.crashing.org>

gcc/testsuite/
	* lib/target-supports.exp (check_ppc_float128_hw_available): Fix
	syntax error.

---
 gcc/testsuite/lib/target-supports.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
1.8.3.1

Patch

diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 99613fd..ec4a35d 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -2182,7 +2182,7 @@  proc check_ppc_float128_hw_available { } {
 		    __float128 w = -1.0q;
 
 		    __asm__ ("xsaddqp %0,%1,%2" : "+v" (w) : "v" (x), "v" (y));
-		    return ((z != 3.0q) || (z != w);
+		    return ((z != 3.0q) || (z != w));
 		}
 	    } $options
 	}