From: Haochen Gui Date: Fri, 5 Aug 2022 02:44:18 +0000 (+0800) Subject: rs6000: Correct return value of check_p9modulo_hw_available. X-Git-Tag: basepoints/gcc-14~5236 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4574dad43f77100f401375e6c9df6402e99ab682;p=thirdparty%2Fgcc.git rs6000: Correct return value of check_p9modulo_hw_available. Set the return value to 0 when modulo is supported, and to 1 when not supported. gcc/testsuite/ * lib/target-supports.exp (check_p9modulo_hw_available): Correct return value. --- diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 4ed7b25b9a4..04a2a8e8659 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -2288,7 +2288,7 @@ proc check_p9modulo_hw_available { } { { int i = 5, j = 3, r = -1; asm ("modsw %0,%1,%2" : "+r" (r) : "r" (i), "r" (j)); - return (r == 2); + return (r != 2); } } $options }