public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-1971] rs6000: Correct return value of check_p9modulo_hw_available.
@ 2022-08-05  2:53 HaoChen Gui
  0 siblings, 0 replies; only message in thread
From: HaoChen Gui @ 2022-08-05  2:53 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:4574dad43f77100f401375e6c9df6402e99ab682

commit r13-1971-g4574dad43f77100f401375e6c9df6402e99ab682
Author: Haochen Gui <guihaoc@gcc.gnu.org>
Date:   Fri Aug 5 10:44:18 2022 +0800

    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:
---
 gcc/testsuite/lib/target-supports.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
 	}


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-05  2:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-05  2:53 [gcc r13-1971] rs6000: Correct return value of check_p9modulo_hw_available HaoChen Gui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).