aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2020-11-24 00:22:52 +0100
committerIlya Leoshkevich <iii@linux.ibm.com>2020-11-24 13:31:16 +0100
commit4acba4859013ecaa5d109244f5b1cf95a090f3e3 (patch)
treec2c09a2c7db2b4b6fa21a00893bbc4e659831d38
parentfbd4553d99bc918b645194da1dba9e8f5f1cdece (diff)
downloadgcc-4acba4859013ecaa5d109244f5b1cf95a090f3e3.zip
gcc-4acba4859013ecaa5d109244f5b1cf95a090f3e3.tar.gz
gcc-4acba4859013ecaa5d109244f5b1cf95a090f3e3.tar.bz2
IBM Z: Restrict vec_cmp<m><n> on z13
Commit 5d9ade39b872 ("IBM Z: Fix PR97326: Enable fp compares in vec_cmp") made it possible to create rtxes that describe signaling comparisons on z13, which are not supported by the hardware. Restrict this by using vcond_comparison_operator predicate. gcc/ChangeLog: 2020-11-24 Ilya Leoshkevich <iii@linux.ibm.com> * config/s390/vector.md: Use vcond_comparison_operator predicate.
-rw-r--r--gcc/config/s390/vector.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/s390/vector.md b/gcc/config/s390/vector.md
index fef6864..029ee08 100644
--- a/gcc/config/s390/vector.md
+++ b/gcc/config/s390/vector.md
@@ -1561,7 +1561,7 @@
(define_expand "vec_cmp<mode><tointvec>"
[(set (match_operand:<TOINTVEC> 0 "register_operand" "")
- (match_operator:<TOINTVEC> 1 ""
+ (match_operator:<TOINTVEC> 1 "vcond_comparison_operator"
[(match_operand:V_HW 2 "register_operand" "")
(match_operand:V_HW 3 "register_operand" "")]))]
"TARGET_VX"