projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fd1b9d
)
rs6000: fix power10_hw test
author
Aaron Sawdey
<acsawdey@linux.ibm.com>
Tue, 7 Jul 2020 17:48:56 +0000
(12:48 -0500)
committer
Aaron Sawdey
<acsawdey@linux.ibm.com>
Tue, 7 Jul 2020 19:16:01 +0000
(14:16 -0500)
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.
gcc/testsuite/lib/target-supports.exp
patch
|
blob
|
history
diff --git
a/gcc/testsuite/lib/target-supports.exp
b/gcc/testsuite/lib/target-supports.exp
index 4bdcaef11327c5180325c208dc052a5467bf1792..848cb96aec45769bde9d5b2a77b1f42739208aa0 100644
(file)
--- 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"
}]