diff options
author | Aaron Sawdey <acsawdey@linux.ibm.com> | 2020-07-07 12:48:56 -0500 |
---|---|---|
committer | Aaron Sawdey <acsawdey@linux.ibm.com> | 2020-07-07 14:16:01 -0500 |
commit | 7126583af5d29235584b51b3b05eeaba2adef024 (patch) | |
tree | fb145bf136f76b3d74c2ef6e799b3b74bbda58a0 | |
parent | 7fd1b9dc8507669f4a6250788452b52322c4570b (diff) | |
download | gcc-7126583af5d29235584b51b3b05eeaba2adef024.zip gcc-7126583af5d29235584b51b3b05eeaba2adef024.tar.gz gcc-7126583af5d29235584b51b3b05eeaba2adef024.tar.bz2 |
rs6000: fix power10_hw test
The code snippet for this test was returning 1 if power10
instructions executed correctly. It should return 0 if the
test passes.
* lib/target-supports.exp (check_power10_hw_available):
Return 0 for passing test.
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 4bdcaef..848cb96 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -2226,7 +2226,9 @@ proc check_power10_hw_available { } { /* Set e first and use +r to check if pli actually works. */ long e = -1; asm ("pli %0,%1" : "+r" (e) : "n" (0x12345)); - return (e == 0x12345); + if (e == 0x12345) + return 0; + return 1; } } "-mcpu=power10" }] |