diff options
author | Haochen Gui <guihaoc@gcc.gnu.org> | 2022-08-05 10:44:18 +0800 |
---|---|---|
committer | Haochen Gui <guihaoc@gcc.gnu.org> | 2022-08-05 10:46:00 +0800 |
commit | 4574dad43f77100f401375e6c9df6402e99ab682 (patch) | |
tree | 13958b5c028c7a178ef952d4d17cbcb0a92dfa22 | |
parent | ffe4f55aa1bb18cc2793a4335450f34c33c9d01c (diff) | |
download | gcc-4574dad43f77100f401375e6c9df6402e99ab682.zip gcc-4574dad43f77100f401375e6c9df6402e99ab682.tar.gz gcc-4574dad43f77100f401375e6c9df6402e99ab682.tar.bz2 |
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.
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 4ed7b25..04a2a8e 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 } |